mirror of
https://github.com/kharonsec/ollama-python
synced 2026-05-11 01:22:14 +02:00
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)
|