Skip to content

Commit 69f1d5d

Browse files
authored
Allow overriding the Ollama base URL (#904)
1 parent c047e5c commit 69f1d5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/jupyter-ai-magics/jupyter_ai_magics/providers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,9 @@ class OllamaProvider(BaseProvider, Ollama):
705705
)
706706
models = ["*"]
707707
registry = True
708+
fields = [
709+
TextField(key="base_url", label="Base API URL (optional)", format="text"),
710+
]
708711

709712

710713
class JsonContentHandler(LLMContentHandler):

0 commit comments

Comments
 (0)