ollama-js
ollama-js copied to clipboard
prompt_eval_count is only defined on the first request
-
prompt_eval_count
is only defined on the first "chat" or "generate" request. - It is
undefined
on the second request with the same content. - When implementors rely on this field to be a not nullable number, this might be surprising.
- https://github.com/ollama/ollama/issues/2068