Closed leehuwuj closed 3 months ago
Latest commit: d4a4fc8dd69708928bad0a62f400b7ce00394a8d
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The recent changes bring a significant enhancement by introducing a new environment variable OLLAMA_BASE_URL
and updating the configuration in various files to include this base URL parameter for Ollama instances. These adjustments enhance the adaptability and flexibility of the application, particularly in configuring the Ollama provider across different components.
File | Change Summary |
---|---|
helpers/env-variables.ts |
Added OLLAMA_BASE_URL environment variable for specifying the Ollama API base URL. |
.../streaming/fastapi/app/settings.py |
Modified Settings.embed_model and Settings.llm initialization to include base_url for Ollama instances. |
.../streaming/express/src/controllers/engine/settings.ts |
Updated initOllama function to include additional configuration parameters for Ollama and OllamaEmbedding instances. |
.../streaming/nextjs/app/api/chat/engine/settings.ts |
Enhanced initOllama function to initialize Ollama and OllamaEmbedding with a config object based on OLLAMA_BASE_URL . |
A rabbit's code, a dance so merry,
Ollama now with a URL so very.
Configurations flexible, like a cherry,
Our app adapts, no longer wary.
🐰🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
OLLAMA_BASE_URL
for configuring the base URL of the Ollama API.Enhancements
base_url
parameter, providing greater configuration flexibility.