-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
fix: groq added #1047
fix: groq added #1047
Changes from 1 commit
70b2406
35121a5
a8fea45
7b96ca9
976ac14
4f03909
6355298
6ce83a5
bb84325
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { openai } from "@ai-sdk/openai"; | ||
import {groq} from '@ai-sdk/groq' | ||
import { VercelAIToolSet } from "composio-core"; | ||
import dotenv from "dotenv"; | ||
import { generateText } from "ai"; | ||
|
@@ -36,7 +37,7 @@ async function executeAgent(entityName) { | |
|
||
// Generate text using the model and tools | ||
const output = await generateText({ | ||
model: openai("gpt-4o"), | ||
model: groq("llama-3.3-70b-versatile"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a comment explaining why the model was switched from GPT-4 to LLaMA and any expected behavioral differences. This will help future maintainers understand the reasoning behind this change. |
||
streamText: false, | ||
tools: tools, | ||
prompt: ` | ||
Comment on lines
37
to
43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 Bug Fix:
By following these steps, you can mitigate the risks associated with this high-impact change. 🚀
Comment on lines
37
to
43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Comment on lines
37
to
43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Comment on lines
37
to
43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Actionable Steps:
This change is critical and should be handled with caution to avoid potential disruptions in functionality. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider maintaining consistent quote style in imports. The file uses double quotes for other imports but single quotes here. For consistency, suggest using:
import { groq } from "@ai-sdk/groq";