Skip to content

Commit

Permalink
Run ruff-format so CI doesn't complain
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 16, 2025
1 parent 7a6ab04 commit 1115251
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
7 changes: 1 addition & 6 deletions examples/create.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
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
)
response = client.create(model='my-assistant', from_='llama3.2', system='You are mario from Super Mario Bros.', stream=False)
print(response.status)
18 changes: 18 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tox]
env_list =
py38
py39
py310
py311
py313
minversion = 4.23.2

[testenv]
;description = run the tests with pytest
;package = wheel
;wheel_build_env = .pkg
;deps =
; pytest>=6
commands =
python --version
python examples/tools.py

0 comments on commit 1115251

Please sign in to comment.