mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
How to set temprature and output token size in the chat mode? #39
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 @jojogh on GitHub (Feb 28, 2024).
Is there any examples to guide how to set temprature and output token size in the chat mode?
@eliranwong commented on GitHub (Feb 28, 2024):
You may read this example:
examples/fill-in-middle/main.py
@jojogh commented on GitHub (Mar 1, 2024):
thanks first, i have seen this example, it is generate mode, not in chat mode.
@eliranwong commented on GitHub (Mar 1, 2024):
For example, I use the following for one of my projects:
@deepcoder commented on GitHub (Mar 1, 2024):
and "keep_alive" as well, thanks!
@jojogh commented on GitHub (Mar 2, 2024):
Thanks Wong, I will try. Many thanks.