Skip to content

feat(groq-ai): initial implementation using groq-sdk#40

Merged
omeraplak merged 5 commits intoVoltAgent:mainfrom
TheEmi:groq-ai
Apr 26, 2025
Merged

feat(groq-ai): initial implementation using groq-sdk#40
omeraplak merged 5 commits intoVoltAgent:mainfrom
TheEmi:groq-ai

Conversation

@TheEmi
Copy link
Copy Markdown
Contributor

@TheEmi TheEmi commented Apr 24, 2025

Initial implementation of GroqProvider class

This includes:

GroqProvider class implementing LLMProvider.
Integration with the groq-sdk.
Implementation of generateText, streamText, generateObject.
Stub for streamObject.
Basic build (tsup.config.ts, tsconfig.json) and package (package.json) setup copied from VercelAIProvider.

@TheEmi
Copy link
Copy Markdown
Contributor Author

TheEmi commented Apr 24, 2025

Hey @omeraplak can you please check out the initial implementation and tell me if you see anything out of place?

@omeraplak
Copy link
Copy Markdown
Member

Hey @TheEmi ,
Thanks so much for the PR! 🙌 I’ll review it shortly and get back to you soon. ⚡

@omeraplak
Copy link
Copy Markdown
Member

Hey! If you’d like to add a changeset, that would be awesome but no pressure at all.
I can also add it for you if you prefer, just let me know!

Here’s a quick guide on how to create one:
https://voltagent.dev/docs/community/contributing/#creating-a-changeset

Thanks again for the contribution ⚡

@omeraplak
Copy link
Copy Markdown
Member

@TheEmi
Copy link
Copy Markdown
Contributor Author

TheEmi commented Apr 25, 2025

Sounds good! I'll add the changeset and update the docs and examples! Thx

@TheEmi
Copy link
Copy Markdown
Contributor Author

TheEmi commented Apr 25, 2025

Please take a look at the changes again @omeraplak

@omeraplak
Copy link
Copy Markdown
Member

Thank you @TheEmi . I’ll review it shortly and get back to you soon. ⚡

Comment thread examples/with-groq-ai/README.md Outdated
Comment thread packages/groq-ai/CHANGELOG.md Outdated
Comment thread packages/groq-ai/README.md
Comment thread website/docs/agents/providers.md

// Instantiate the provider, optionally passing the API key to overwrite the default GROQ_API_KEY
const groqProvider = new GroqProvider({
//apiKey: process.env.GROQ_API_KEY,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
//apiKey: process.env.GROQ_API_KEY,
apiKey: process.env.GROQ_API_KEY,

@omeraplak omeraplak merged commit 37c2136 into VoltAgent:main Apr 26, 2025
2 of 4 checks passed
@omeraplak
Copy link
Copy Markdown
Member

Thank you again @TheEmi for your contribution! 🙌
By the way, what’s your Discord username? We’d love to give you the Contributor badge on our server! ⚡

@omeraplak omeraplak linked an issue Apr 26, 2025 that may be closed by this pull request
@TheEmi TheEmi deleted the groq-ai branch April 29, 2025 16:41
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.

Groq Provider Integration

3 participants