forked from phoenix/litellm-mirror
fixing azure bug
This commit is contained in:
parent
068f4ca866
commit
7f3b90db3c
2 changed files with 2 additions and 3 deletions
|
@ -164,7 +164,7 @@ def completion(
|
|||
)
|
||||
else:
|
||||
response = openai.ChatCompletion.create(
|
||||
model=model, messages=messages, **optional_params
|
||||
engine=model, messages=messages, **optional_params
|
||||
)
|
||||
## LOGGING
|
||||
logging.post_call(input=messages, api_key=openai.api_key, original_response=response, additional_args={"headers": litellm.headers, "api_version": openai.api_version, "api_base": openai.api_base})
|
||||
|
|
|
@ -254,8 +254,7 @@ def test_completion_openai_with_functions():
|
|||
def test_completion_azure():
|
||||
try:
|
||||
response = completion(
|
||||
model="gpt-3.5-turbo",
|
||||
deployment_id="chatgpt-test",
|
||||
model="chatgpt-test",
|
||||
messages=messages,
|
||||
custom_llm_provider="azure",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue