ollama / ollama-python

Ollama Python library
https://ollama.com
MIT License
2.69k stars 221 forks source link

Max token question #101

Open tonyphoang opened 3 months ago

tonyphoang commented 3 months ago

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 commented 3 months ago

set it in options, like this image