Skip to content

Commit

Permalink
Allow overriding the Ollama base URL (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio authored Jul 22, 2024
1 parent c047e5c commit 69f1d5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,9 @@ class OllamaProvider(BaseProvider, Ollama):
)
models = ["*"]
registry = True
fields = [
TextField(key="base_url", label="Base API URL (optional)", format="text"),
]


class JsonContentHandler(LLMContentHandler):
Expand Down

0 comments on commit 69f1d5d

Please sign in to comment.