Skip to content

Commit

Permalink
Make -1 default value if no tokens have been received
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoham committed Oct 16, 2024
1 parent 4d61c85 commit 3253c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/llm/external/ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def chat(
)
return convert_to_iris_message(
response.get("message"),
response.get("prompt_eval_count", 0),
response.get("eval_count", 0),
response.get("prompt_eval_count", -1),
response.get("eval_count", -1),
response.get("model", self.model),
)

Expand Down

0 comments on commit 3253c46

Please sign in to comment.