mirror of
https://github.com/ForLoopCodes/contextplus.git
synced 2026-04-26 06:25:50 +03:00
[PR #4] [MERGED] fix: support remote Ollama host via OLLAMA_HOST env var #8
Labels
No labels
bug
bug
documentation
enhancement
enhancement
good first issue
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/contextplus#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ForLoopCodes/contextplus/pull/4
Author: @slegarraga
Created: 3/1/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @ForLoopCodes
Base:
main← Head:fix/remote-ollama-host📝 Commits (1)
ba1644bfix: support remote Ollama host via OLLAMA_HOST env var📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
src/core/embeddings.ts(+1 -1)📝
src/tools/semantic-navigate.ts(+1 -1)📄 Description
Summary
Passes
process.env.OLLAMA_HOSTto the Ollama client constructor in bothsrc/core/embeddings.tsandsrc/tools/semantic-navigate.ts.When
OLLAMA_HOSTis not set, the value isundefinedand the Ollama client defaults tohttp://localhost:11434, preserving backward compatibility.Changes
src/core/embeddings.ts:new Ollama()→new Ollama({ host: process.env.OLLAMA_HOST })src/tools/semantic-navigate.ts: same changeFixes #3
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.