twitchax / augre

An LLM-powered (CodeLlama or OpenAI) local diff code review tool.
MIT License
27 stars 2 forks source link

Fork for OpenAi API user with more functionalities #2

Open Moa1er opened 5 months ago

Moa1er commented 5 months ago

I created a fork with more functionnalities for people that uses the chatgpt API. Feel free to check it out !

https://github.com/Moa1er/augre

twitchax commented 4 months ago

Cool. Do you want to send a PR?

Moa1er commented 4 months ago

I was thinking yes but I need to review the code more and maybe add llama integration. Also I changed the way you make the calls to openai bc it was limited with the available models in the library you used. Now you can specify the chatgpt model directly in the command.

twitchax commented 4 months ago

Sounds good!

ashwin-dailype commented 1 month ago

Hey all! I've an open ai API key however from the README of this repo I'm unable to figure out how to pass it to augre. I've prepared contents for my config file but I don't know how I should name the file and if I should place it in .augre or elsewhere

I tried creating /augre/config.yaml with the below contents

openai_key: "sk-proj-xxxx"

and it gives me this error

❯ augre review ✅ Running in OpenAI mode.

Checking if git is present ... 💯! ERROR: OpenAI key not provided. Please set the openai_key config value, or use a local mode.

twitchax commented 1 month ago

The default is .augre/config.toml. 😄

ashwin-dailype commented 1 month ago

The default is .augre/config.toml. 😄

Thanks a lot!