mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(anthropic.py): fix linting errors
This commit is contained in:
parent
f00c489c1b
commit
84c7a5b693
1 changed files with 3 additions and 1 deletions
|
|
@ -269,7 +269,9 @@ def completion(
|
|||
].finish_reason
|
||||
streaming_model_response.choices[0].index = model_response.choices[0].index
|
||||
_tool_calls = []
|
||||
if isinstance(model_response.choices[0], litellm.Choices):
|
||||
if isinstance(model_response.choices[0], litellm.Choices) and isinstance(
|
||||
streaming_model_response.choices[0], litellm.utils.StreamingChoices
|
||||
):
|
||||
if getattr(
|
||||
model_response.choices[0].message, "tool_calls", None
|
||||
) is not None and isinstance(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue