Skip to content

Commit

Permalink
Allow overriding the Ollama base URL
Browse files Browse the repository at this point in the history
jupyterlab#1004
This allows overriding Ollama base URL when using embeddings model.
  • Loading branch information
sqlreport authored Sep 20, 2024
1 parent fcb2d71 commit 69bf1c0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ class OllamaEmbeddingsProvider(BaseEmbeddingsProvider, OllamaEmbeddings):
"snowflake-arctic-embed",
]
model_id_key = "model"
fields = [
TextField(key="base_url", label="Base API URL (optional)", format="text"),
]


class HfHubEmbeddingsProvider(BaseEmbeddingsProvider, HuggingFaceHubEmbeddings):
Expand Down

0 comments on commit 69bf1c0

Please sign in to comment.