mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-19 04:54:06 +00:00
89e719ab92
* chore: upgrade ruff & sort imports
5 lines
146 B
Python
5 lines
146 B
Python
from ollama import generate
|
|
|
|
for part in generate('llama3.2', 'Why is the sky blue?', stream=True):
|
|
print(part['response'], end='', flush=True)
|