forked from phoenix/litellm-mirror
fix(cohere/chat.py): fix linting errors
This commit is contained in:
parent
2fbc71a62c
commit
927f9fa4eb
1 changed files with 2 additions and 2 deletions
|
@ -378,7 +378,7 @@ def completion(
|
||||||
raise CohereError(message=response.text, status_code=response.status_code)
|
raise CohereError(message=response.text, status_code=response.status_code)
|
||||||
|
|
||||||
if "stream" in optional_params and optional_params["stream"] is True:
|
if "stream" in optional_params and optional_params["stream"] is True:
|
||||||
completion_stream, headers = make_sync_call(
|
completion_stream, cohere_headers = make_sync_call(
|
||||||
client=client,
|
client=client,
|
||||||
api_base=api_base,
|
api_base=api_base,
|
||||||
headers=headers, # type: ignore
|
headers=headers, # type: ignore
|
||||||
|
@ -393,7 +393,7 @@ def completion(
|
||||||
model=model,
|
model=model,
|
||||||
custom_llm_provider="cohere_chat",
|
custom_llm_provider="cohere_chat",
|
||||||
logging_obj=logging_obj,
|
logging_obj=logging_obj,
|
||||||
_response_headers=headers,
|
_response_headers=dict(cohere_headers),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
## LOGGING
|
## LOGGING
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue