Skip to content

Commit

Permalink
Allow overriding the Ollama base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Jul 18, 2024
1 parent 0a60807 commit 448ab41
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 @@ -734,6 +734,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 448ab41

Please sign in to comment.