mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
Update litellm/llms/ollama/chat/transformation.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
be66aa2bd1
commit
06bbfbd11e
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ class OllamaChatConfig(BaseConfig):
|
|||
response_json = raw_response.json()
|
||||
|
||||
## RESPONSE OBJECT
|
||||
_done_reason = response_json.get("done_reason", "stop")
|
||||
_done_reason = response_json.get("done_reason") or "stop"
|
||||
model_response.choices[0].finish_reason = _done_reason
|
||||
response_json_message = response_json.get("message")
|
||||
if response_json_message is not None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue