mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
(fix) using AzureOpenAI client
This commit is contained in:
parent
f5b558dde0
commit
0f0ddcc0fb
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ class AzureChatCompletion(BaseLLM):
|
|||
azure_client = AzureOpenAI(**azure_client_params)
|
||||
else:
|
||||
azure_client = client
|
||||
response = client.chat.completions.create(**data)
|
||||
response = azure_client.chat.completions.create(**data)
|
||||
streamwrapper = CustomStreamWrapper(completion_stream=response, model=model, custom_llm_provider="azure",logging_obj=logging_obj)
|
||||
for transformed_chunk in streamwrapper:
|
||||
yield transformed_chunk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue