di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
5.98k stars 318 forks source link

[Feature]: Make ollama hostname configurable #303

Open digitalstudium opened 6 months ago

digitalstudium commented 6 months ago

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

di-sukharev commented 6 months ago

hi @digitalstudium gonna try to get to it, but feel free to outrun me :)