mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Fix: get format from data not optional_params ollama non-stream completion
This commit is contained in:
parent
81b1c46c6f
commit
bb6132eee1
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ def get_ollama_response(
|
|||
|
||||
## RESPONSE OBJECT
|
||||
model_response["choices"][0]["finish_reason"] = "stop"
|
||||
if optional_params.get("format", "") == "json":
|
||||
if data.get("format", "") == "json":
|
||||
function_call = json.loads(response_json["response"])
|
||||
message = litellm.Message(
|
||||
content=None,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue