mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-14 06:07:17 +08:00
* Examples and README updates --------- Co-authored-by: fujitatomoya <tomoya.fujita825@gmail.com> Co-authored-by: Michael Yang <mxyng@pm.me>
6 lines
114 B
Python
6 lines
114 B
Python
from ollama import generate
|
|
|
|
|
|
response = generate('llama3.2', 'Why is the sky blue?')
|
|
print(response['response'])
|