Closed pandego closed 4 months ago
The module level client is intended for quick integration using default client configurations. If you want to change things like base_url,
you need to instantiate a new client
client = ollama.Client(base_url="http://10.1.8.100:11434")
client.embeddings(...)
Alternatively, you can use the module-level client and set base URL with OLLAMA_HOST
$ export OLLAMA_HOST=10.1.8.0
$ python -c 'import ollama; ollama.embeddings(...)'
Hello, this might be extremely basic, but when I try to run the following command:
I get the following unexpected argument
base_url
:What am I missing? 🥲 Thanks!