mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: max tokens of OpenAI gpt-3.5-turbo-instruct to 4097 (#1338)
This commit is contained in:
@ -33,7 +33,7 @@ MODEL_MAX_TOKENS = {
|
|||||||
'gpt-4': 8192,
|
'gpt-4': 8192,
|
||||||
'gpt-4-32k': 32768,
|
'gpt-4-32k': 32768,
|
||||||
'gpt-3.5-turbo': 4096,
|
'gpt-3.5-turbo': 4096,
|
||||||
'gpt-3.5-turbo-instruct': 8192,
|
'gpt-3.5-turbo-instruct': 4097,
|
||||||
'gpt-3.5-turbo-16k': 16384,
|
'gpt-3.5-turbo-16k': 16384,
|
||||||
'text-davinci-003': 4097,
|
'text-davinci-003': 4097,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -144,7 +144,7 @@ class OpenAIProvider(BaseModelProvider):
|
|||||||
'gpt-4': 8192,
|
'gpt-4': 8192,
|
||||||
'gpt-4-32k': 32768,
|
'gpt-4-32k': 32768,
|
||||||
'gpt-3.5-turbo': 4096,
|
'gpt-3.5-turbo': 4096,
|
||||||
'gpt-3.5-turbo-instruct': 8192,
|
'gpt-3.5-turbo-instruct': 4097,
|
||||||
'gpt-3.5-turbo-16k': 16384,
|
'gpt-3.5-turbo-16k': 16384,
|
||||||
'text-davinci-003': 4097,
|
'text-davinci-003': 4097,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user