mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Inconsistent API Behavior #132
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @negaralizadeh on GitHub (Aug 12, 2024).
I checked the documentation several times and I'm using the generate function in this way:
options = {
"temperature": 0.2,
"top_p": 0.8,
"seed": 42,
"num_predict": 300,
}
ollama.generate(model=model_name, prompt=prompt, stream=False, options=options, system=system_message, format="json")
Although I set the stream flag to false, I still don't get the whole response in one package (done = False in the first received package).
The other problem is that sometimes, even when the package is final (done=true), I don't see all the expected additional information there for example prompt_eval_count is missing.
Am I doing something wrong here?
@ParthSareen commented on GitHub (Nov 21, 2024):
Hey! Are you still running into this? If so could you send an example of a run and the output it gives you.
@ParthSareen commented on GitHub (Nov 26, 2024):
Closing out as stale