Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max token question #101

Open
tonyphoang opened this issue Mar 27, 2024 · 1 comment
Open

Max token question #101

tonyphoang opened this issue Mar 27, 2024 · 1 comment

Comments

@tonyphoang
Copy link

How do you set the max token with ollama python?
My code doesn't seem to work. Thanks!
output=ollama.chat(model='my_model',max_token=5, messages=[])

@cyx2000
Copy link

cyx2000 commented Mar 30, 2024

set it in options, like this
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants