Closed asbisen closed 10 months ago
Thank you for catching this! Not sure when they introduced it, but it seems that Ollama dropped some keys in the response if the prompt was cached.
It should be fixed now - please re-open if it persists!
EDIT: Once you confirm, I'll tag a new release.
Operating System: macOS 14.2.1 (M1 Max) Julia: v1.10.0 PromptingTools: v0.7.0
The code below runs successfully for the first time and subsequent invocation of the code fails with
KeyError: key :prompt_eval_count not found
. If the prompt is modified with new text then the code executes successfully again.First Run: Successful Second Run: Error