diff --git a/examples/create.py b/examples/create.py index dfc9094..031d7ae 100755 --- a/examples/create.py +++ b/examples/create.py @@ -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) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..d65d93b --- /dev/null +++ b/tox.ini @@ -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