Skip to content
Snippets Groups Projects
Unverified Commit 3610e1e5 authored by KevinHuSh's avatar KevinHuSh Committed by GitHub
Browse files

fix ollama issuet push (#486)

### What problem does this PR solve?

#477 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
parent 11949f9f
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,7 @@ class OllamaChat(Base):
options=options
)
ans = response["message"]["content"].strip()
return ans, response["eval_count"] + response["prompt_eval_count"]
return ans, response["eval_count"] + response.get("prompt_eval_count", 0)
except Exception as e:
return "**ERROR**: " + str(e), 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment