-
Notifications
You must be signed in to change notification settings - Fork 42
Groq Provider + Smoke test + update sdks #582
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
Conversation
|
🚅 Deployed to the echo-pr-582 environment in echo
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
| expect(streamed).not.toBe(''); | ||
| } catch (err) { | ||
| const details = getApiErrorDetails(err); | ||
| throw new Error(`[generateText] Groq ${model_id} failed: ${details}`); |
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.
The error message in the streamText test incorrectly identifies itself as a generateText test, which could cause confusion when debugging test failures.
View Details
📝 Patch Details
diff --git a/packages/tests/provider-smoke/gemini-stream-text.test.ts b/packages/tests/provider-smoke/gemini-stream-text.test.ts
index 086995ce..0fa669d5 100644
--- a/packages/tests/provider-smoke/gemini-stream-text.test.ts
+++ b/packages/tests/provider-smoke/gemini-stream-text.test.ts
@@ -38,7 +38,7 @@ describe.concurrent('Gemini streamText per model', () => {
expect(streamed).not.toBe('');
} catch (err) {
const details = getApiErrorDetails(err);
- throw new Error(`[generateText] Gemini ${model_id} failed: ${details}`);
+ throw new Error(`[streamText] Gemini ${model_id} failed: ${details}`);
}
});
}
diff --git a/packages/tests/provider-smoke/groq-stream-text.test.ts b/packages/tests/provider-smoke/groq-stream-text.test.ts
index 05e663c1..d3a86d2d 100644
--- a/packages/tests/provider-smoke/groq-stream-text.test.ts
+++ b/packages/tests/provider-smoke/groq-stream-text.test.ts
@@ -35,7 +35,7 @@ describe.concurrent('Groq streamText per model', () => {
expect(streamed).not.toBe('');
} catch (err) {
const details = getApiErrorDetails(err);
- throw new Error(`[generateText] Groq ${model_id} failed: ${details}`);
+ throw new Error(`[streamText] Groq ${model_id} failed: ${details}`);
}
});
}
Analysis
Incorrect error message labels in streamText tests
What fails: groq-stream-text.test.ts and gemini-stream-text.test.ts use [generateText] in error messages instead of [streamText], causing confusion when debugging test failures
How to reproduce:
- Run a streamText test that fails (e.g., invalid API key)
- Error message incorrectly shows
[generateText] Groq model failedinstead of[streamText] Groq model failed
Result: Misleading error messages that misidentify the failing operation as generateText when it's actually streamText
Expected: Error messages should use [streamText] to match the actual test purpose, consistent with anthropic-stream-text.test.ts, openai-stream-text.test.ts, and openrouter-stream-text.test.ts
No description provided.