opencommit
opencommit copied to clipboard
Add Google Gemini LLM support
OK, this has been long time coming. I also included a few other changes I hope you will consider:
- tsconfig.json changes for better TypeScript support during development
- engine.ts updated openai, ollama and gemini classes to be exported instead of instantiating instances of the classes. This will ensure that only the intended model is instantiated
- OCO_API_KEY added this environment variable with continued support for OCO_OPENAI_API_KEY so users are not confused when setting api key
- gemini.ts model support includes ability to use Gemini Pro 1.5 model, and will use better model completions from Gemini if the advanced model is chosen
@di-sukharev sorry for such a big delay but cleaned up the gemini output, added some extra features around Gemini Pro 1.5 and a few other small convenience things in project I hope you'll consider.
pls target your PRs to dev
i've changed the base to dev from master, please solve the confilicts
@drewpayment hi, pls let me know when i can merge it
@drewpayment @di-sukharev When you did the force push last time, didn't the changes to Gemini disappear?
I took too long and there were a lot of conflicts. My fork is almost ready, started working on it last night to bring support to all the Google models. Just trying to finish the tests up before I resubmit the PR.
I added the new PR that merged to dev with tests included.
https://github.com/di-sukharev/opencommit/pull/349