di-sukharev / di-sukharev/opencommit

[Feature]: Make ollama hostname configurable

Open
#303 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.5k
Forks
445
Avg merge
18m
Merged PRs (30d)
2

Description

Description

Ollama can be deployed on remote server, so it would be nice to have an option to set Ollama hostname via environment variable

Suggested Solution

In this file: https://github.com/di-sukharev/opencommit/blob/master/src/engine/ollama.ts#L15
read ollama hostname from environment variable instead of hardcoded localhost

Alternatives

No response

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/engine/ollama.ts at the hostname handling around line 15. Read how the Ollama connection is configured, then make the hostname come from an environment variable rather than a hardcoded localhost value. Done means deployments can point the Ollama provider at a remote server through that variable.

Written by the indexing model from the issue text.

Assessment

Tech stack
ollama, typescript
Domain
ai
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.