mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
How do I define the 'base_url' using embeddings() #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pandego on GitHub (Feb 28, 2024).
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!
@mxyng commented on GitHub (Feb 28, 2024):
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 clientAlternatively, you can use the module-level client and set base URL with
OLLAMA_HOST@alexiewx commented on GitHub (Feb 22, 2025):
@mxyng tks ! it works for me .