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

A tool is being called multiple times while using Groq model #3872

Open
ajaykrupalk opened this issue Nov 25, 2024 · 4 comments
Open

A tool is being called multiple times while using Groq model #3872

ajaykrupalk opened this issue Nov 25, 2024 · 4 comments
Labels
ai/core ai/ui bug Something isn't working

Comments

@ajaykrupalk
Copy link

ajaykrupalk commented Nov 25, 2024

Description

For one prompt using groq, the tool is show the results multiple times when the tool result should have been just once just like in the below google gemini image. I have tried this with other providers like Mistral, and I am seeing this happen with Groq. I have tried remove maxSteps also, but that didn't help. Using AI SDK 3.3 and GROQ SDK 1.0.3

IMAGE OF USING GROQ LLAMA 3.1 70B

image

MAGE OF USING GOOGLE GEMINI 1.5 FLASH 002

image

Code example

No response

AI provider

@ai-sdk/groq 1.0.3

Additional context

Using AI SDK 3.3 and GROQ SDK 1.0.3, Next.JS

@ajaykrupalk ajaykrupalk added the bug Something isn't working label Nov 25, 2024
@lgrammel
Copy link
Collaborator

Can you try with https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Freact%401.0.3 and the latest AI SDK 4.0.5 ? we fixed a bug today that might impact this

@ajaykrupalk
Copy link
Author

@lgrammel this might break existing code right?

@lgrammel
Copy link
Collaborator

@ajaykrupalk wdym? it's a bug fix for a verified bug - yes it might affect things but we need to fix it.

@ajaykrupalk
Copy link
Author

Oh okay. Just wanted to confirm if it would break things at my end. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/core ai/ui bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants