opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

Add Google Gemini LLM support

Open drewpayment opened this issue 1 year ago • 2 comments

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

drewpayment avatar May 04 '24 19:05 drewpayment

@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.

drewpayment avatar May 04 '24 19:05 drewpayment

pls target your PRs to dev

i've changed the base to dev from master, please solve the confilicts

di-sukharev avatar May 05 '24 15:05 di-sukharev

@drewpayment hi, pls let me know when i can merge it

di-sukharev avatar May 23 '24 07:05 di-sukharev

@drewpayment @di-sukharev When you did the force push last time, didn't the changes to Gemini disappear?

km-tr avatar May 25 '24 16:05 km-tr

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.

drewpayment avatar May 25 '24 17:05 drewpayment

I added the new PR that merged to dev with tests included.

https://github.com/di-sukharev/opencommit/pull/349

drewpayment avatar May 26 '24 14:05 drewpayment