jupyter-ai
jupyter-ai copied to clipboard
ollama embedding with Base API URL ignored
- jupyter-ai: 2.23.0
- ollama3.1 working without issue
- mxbai-embed-large curl on jupyter terminal working without issue
When running /learn command, I am seeing that jupyter ai chat UI calling using localhost instead of specific base api url configured.
HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/embeddings
This happens when we call /learn command in chat UI. So it seems to be related to embedding model call.
looks like ollama embedding doesn't allow base url to be changed. https://github.com/langchain-ai/langchain/issues/25022
Thank you for reporting this issue. Really sorry you felt the need to close your PRs! Please feel free to ping me in the future if you need my attention. I'll be more responsive from now on.
I'll assign this issue to you + another contributor, and add it to a milestone for tracking.
For contributors: We need a Base API URL optional field for the Ollama embedding provider defined in ollama.py.