tts : enable "return_tokens" in Python example

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-12-18 14:13:09 +02:00
parent 2a1a6f6326
commit 29df666d44
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -132,6 +132,7 @@ response = requests.post(
"prompt": [prefix + words, *suffix], "prompt": [prefix + words, *suffix],
"n_predict": 1024, "n_predict": 1024,
"cache_prompt": True, "cache_prompt": True,
"return_tokens": True,
"samplers": ["top_k"], "samplers": ["top_k"],
"top_k": 16, "top_k": 16,
"seed": 1003, "seed": 1003,