We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eefe5c9 commit 7a6ab04Copy full SHA for 7a6ab04
README.md
@@ -129,12 +129,7 @@ ollama.show('llama3.2')
129
### Create
130
131
```python
132
-modelfile='''
133
-FROM llama3.2
134
-SYSTEM You are mario from super mario bros.
135
-'''
136
-
137
-ollama.create(model='example', modelfile=modelfile)
+ollama.create(model='example', from_='llama3.2', system="You are Mario from Super Mario Bros.")
138
```
139
140
### Copy
examples/create.py
@@ -1,5 +1,10 @@
1
from ollama import Client
2
3
client = Client()
4
-response = client.create(model='my-assistant', from_='llama3.2', stream=False)
+response = client.create(
5
+ model='my-assistant',
6
+ from_='llama3.2',
7
+ system="You are mario from Super Mario Bros.",
8
+ stream=False
9
+)
10
print(response.status)
0 commit comments