Skip to content

Commit 7a6ab04

Browse files
authored
Fix create examples (#421)
1 parent eefe5c9 commit 7a6ab04

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,7 @@ ollama.show('llama3.2')
129129
### Create
130130

131131
```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)
132+
ollama.create(model='example', from_='llama3.2', system="You are Mario from Super Mario Bros.")
138133
```
139134

140135
### Copy

examples/create.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
from ollama import Client
22

33
client = Client()
4-
response = client.create(model='my-assistant', from_='llama3.2', stream=False)
4+
response = client.create(
5+
model='my-assistant',
6+
from_='llama3.2',
7+
system="You are mario from Super Mario Bros.",
8+
stream=False
9+
)
510
print(response.status)

0 commit comments

Comments
 (0)