mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-13 21:57:16 +08:00
11 lines
205 B
Python
Executable File
11 lines
205 B
Python
Executable File
from ollama import Client
|
|
|
|
client = Client()
|
|
response = client.create(
|
|
model='my-assistant',
|
|
from_='llama3.2',
|
|
system='You are mario from Super Mario Bros.',
|
|
stream=False,
|
|
)
|
|
print(response.status)
|