Nutlope / aicommits

A CLI that writes your git commit messages for you with AI
https://www.npmjs.com/package/aicommits
MIT License
7.53k stars 360 forks source link

Add support for custom OpenAI URL #277

Open abbra opened 3 months ago

abbra commented 3 months ago

Allows to run local OpenAI-compatible server. Since these local instances most likely lack proper certificates, allow using non-HTTPS endpoints as well.

toropanov commented 3 months ago

It's quite strange how variables carry varying connotations.

config.openai_url
config.OPENAI_KEY

And etc.

Why not to keep everything in uppercase?

abbra commented 3 months ago

@toropanov thanks, I updated to use uppercase version for both.

tak-bro commented 3 months ago

I've created a new project with your options based on aicommits. If you're interested, please check it out. https://github.com/tak-bro/aicommit2

ATQQ commented 3 months ago

👍🏻 I also plan to do this, it is very useful.

mrdjohnson commented 1 month ago

Anything blocking this PR? I'd like to attach aicommits to LM Studio so I can keep everything local to my machine 🤞