mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🪙 fix(getModelMaxTokens): Retrieve Correct Context Tokens for Azure OpenAI (#1710)
This commit is contained in:
parent
296967eff0
commit
7934cc5ec4
2 changed files with 65 additions and 1 deletions
|
|
@ -81,7 +81,8 @@ const anthropicModels = {
|
|||
|
||||
// Order is important here: by model series and context size (gpt-4 then gpt-3, ascending)
|
||||
const maxTokensMap = {
|
||||
[EModelEndpoint.openAI]: openAIModels,
|
||||
[EModelEndpoint.azureOpenAI]: openAIModels,
|
||||
[EModelEndpoint.openAI]: { ...openAIModels, ...googleModels, ...anthropicModels },
|
||||
[EModelEndpoint.custom]: { ...openAIModels, ...googleModels, ...anthropicModels },
|
||||
[EModelEndpoint.google]: googleModels,
|
||||
[EModelEndpoint.anthropic]: anthropicModels,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue