mirror of
https://github.com/ollama/ollama-python.git
synced 2026-10-10 19:07:33 +00:00
* Examples and README updates --------- Co-authored-by: fujitatomoya <[email protected]> Co-authored-by: Michael Yang <[email protected]>
6 lines
147 B
Python
6 lines
147 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)
|