-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Groq AI support. #381
Add Groq AI support. #381
Conversation
how do you pay for the groq api key? |
it is free brother, no need to pay. Go to https://console.groq.com/keys, create an account and generate an api key. |
hmm.. do they then somehow log your requests or they dont explicitly tell how requests privacy is managed? |
don't know, all I found is this: https://wow.groq.com/privacy-policy/ They say they don't retain our data but they have to keep count on how much request we make so they for sure log something. |
thank you! @ozeliurs please fix the conflicts, sorry for that, just released 3.0.18 🥵 |
Should I switch to dev before ? |
dev is best, yes |
890e1c0
to
7fe7ae2
Compare
Updated to be able to be merged to dev :) |
there was a refactoring #391, please fix conflicts |
you will also need to adjust your code a bit, it will be easier to support |
@ozeliurs i have resolved the conflicts, but you still need to change the GroqAiEngine a bit, it's simple, please take a look at any other Engine implementation, e.g. OpenAiEngine. Every Engine is now taking parameters in the constructor, i passed them to your |
…dation and engine implementation
Hi, I made the modifications according to your refactoring. The code works now by setting:
|
awesome @ozeliurs, thanks for the contribution, tests are passing, merging it, gonna be available in the next release |
* feat(config): add support for groq AI provider, including config validation and engine implementation (#381) * fix migrations (#414) --------- Co-authored-by: Takanori Matsumoto <[email protected]> Co-authored-by: BILLY Maxime <[email protected]>
Thanks a lot, pleasure contributing. :) |
This will still fail in src/migrations/00_use_single_api_key_and_url.ts#L35 because the switch doesn't handle groq. |
Following comments in #346, I set up groq support with the
OCO_GROQ_API_KEY
variable by setting the OCO_AI_PROVIDER to groq.I am not very familiar with this project, so please feel free to point out mistakes.