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:
Chivereanu Radu 2023-09-14 19:01:22 +03:00 committed by GitHub
parent c7971a809d
commit cab21da87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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"):

View File

@ -0,0 +1,5 @@
---
fixes:
- |
gpt-35-turbo-16k model from Azure can integrate correctly