mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-01 18:29:32 +00:00
fix: Support for Azure 16k gpt 35 deployment (#5804)
* Support for Azure 16k gpt 35 deployment * releasenote added --------- Co-authored-by: user11999 <radugabrielchivereanu@gmail.com>
This commit is contained in:
parent
c7971a809d
commit
cab21da87b
@ -77,7 +77,7 @@ def _openai_text_completion_tokenization_details(model_name: str):
|
||||
if "text-davinci" in model_name:
|
||||
max_tokens_limit = 4097
|
||||
tokenizer_name = model_tokenizer
|
||||
elif model_name.startswith("gpt-3.5-turbo-16k"):
|
||||
elif model_name.startswith("gpt-3.5-turbo-16k") or model_name.startswith("gpt-35-turbo-16k"):
|
||||
max_tokens_limit = 16384
|
||||
tokenizer_name = model_tokenizer
|
||||
elif model_name.startswith("gpt-3"):
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
gpt-35-turbo-16k model from Azure can integrate correctly
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user