mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Need Temperature/Max_token Options #114
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 @cytusbox on GitHub (Jul 17, 2024).
My python script:
Is there any way to set temperature/max_token options through python api?
@Orest02 commented on GitHub (Jul 19, 2024):
there's an API documentation that gives a deeper insight on additional parameters you can use, you might be looking for this section:
https://github.com/ollama/ollama/blob/main/docs/api.md#generate-request-with-options
@cytusbox commented on GitHub (Jul 19, 2024):
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
@lennartpollvogt commented on GitHub (Jul 22, 2024):
The chat function has the argument
options(a dictionary) to provide such configurations. Here is an example for setting the temperature.You will find in the docs of the Ollama repository the full documentation of these options (see comment above)