ollama-python icon indicating copy to clipboard operation
ollama-python copied to clipboard

Max token question

Open tonyphoang opened this issue 3 months ago • 1 comments

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=[])

tonyphoang avatar Mar 27 '24 04:03 tonyphoang

set it in options, like this image

cyx2000 avatar Mar 30 '24 05:03 cyx2000