mirror of
https://github.com/kharonsec/ollama-python
synced 2026-05-09 16:42:13 +02:00
* Examples and README updates --------- Co-authored-by: fujitatomoya <tomoya.fujita825@gmail.com> Co-authored-by: Michael Yang <mxyng@pm.me>
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)
|