Skip to content
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

Adding a Groq provider. #65

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

codetalker7
Copy link
Contributor

@codetalker7 codetalker7 commented Sep 11, 2024

This PR adds a Groq Cloud API provider to the defaults. Groq's API is already blazingly fast, so we probably don't need streaming (atleast for text modalities). The chat example is also minimal (and can be replicated for other models/modalities, it's pretty simple)!

@codetalker7 codetalker7 marked this pull request as ready for review September 11, 2024 05:50
Copy link
Owner

@gsuuon gsuuon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally led you astray here, I'm sorry!

  • I didn't realize (actually, forgot) that Groq had an OpenAI compatible API - the way to talk to these is to set the url in the options for a prompt targeting the OpenAI provider.
  • I was going to suggest adding a starter chat prompt instead, but found that I'd already added one awhile ago. Must've been a late night coding session, I completely forgot about it.

That said, obviously there's a docs miss here and I think a section highlighting the use of OpenAI compatible API's (maybe with Groq as a specific example) could be really helpful. Really embarrassed about this one, sorry again.

@codetalker7
Copy link
Contributor Author

@gsuuon I totally missed this too! Yes, it's probably better to add this as another example in the docs if anything. I'll try this out and I'll be happy to modify the PR to only include the example in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants