mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-28 01:32:17 +00:00
fix(oci/generic): silence mypy assignment error on dynamic finish_reason
This commit is contained in:
parent
d2701fc7b8
commit
36a8485a0c
1 changed files with 1 additions and 1 deletions
|
|
@ -332,7 +332,7 @@ def handle_generic_response(
|
|||
elif oci_finish_reason == "TOOL_CALLS":
|
||||
model_response.choices[0].finish_reason = "tool_calls" # type: ignore[union-attr]
|
||||
elif oci_finish_reason is not None:
|
||||
model_response.choices[0].finish_reason = oci_finish_reason # type: ignore[union-attr]
|
||||
model_response.choices[0].finish_reason = oci_finish_reason # type: ignore[union-attr,assignment]
|
||||
|
||||
oci_usage = completion_response.chatResponse.usage
|
||||
reasoning_tokens: Optional[int] = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue