Skip to content

Conversation

arafatkatze
Copy link
Contributor

@arafatkatze arafatkatze commented Jul 15, 2025

Thanks to @edwin-truthsearch-io for the PR #3898

This is a followup and a rebase to that PR that works with the current code

Implement feature request #565 to support Groq provider. This includes adding proper support for the moonshot kimi k2 model in Groq, which now actually works (no reasoning pollution).

You can find the documentation here

Test Procedure

Unit tests, some feature tests that are enabled by setting the environment variable GROQ_API_KEY.
Ran all known regression tests, and used the updated plugin in VS Code while developing.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Adds support for Groq provider, including API handling, state management, and UI integration, with a new GroqHandler and model management features.

  • Behavior:
    • Adds GroqHandler in src/api/providers/groq.ts for Groq API interactions, supporting model family detection and message creation.
    • Implements refreshGroqModels in refreshGroqModels.ts to fetch and cache Groq models.
    • Updates initializeWebview.ts to refresh Groq models on webview initialization.
  • State Management:
    • Adds groqApiKey, groqModelId, and groqModelInfo to state management in state.ts and state-keys.ts.
    • Updates ExtensionStateContext.tsx to manage Groq models and state.
  • UI Components:
    • Introduces GroqProvider and GroqModelPicker in ApiOptions.tsx and GroqProvider.tsx for UI integration.
    • Updates providerUtils.ts to normalize Groq API configuration.
  • Misc:
    • Adds Groq to supported providers in api.ts and api-configuration-conversion.ts.
    • Updates README.md to include Groq in the list of supported providers.

This description was created by Ellipsis for e25ce84. You can customize this summary. It will automatically update as commits are pushed.

Copy link

changeset-bot bot commented Jul 15, 2025

🦋 Changeset detected

Latest commit: e25ce84

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
claude-dev Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jul 15, 2025

Coverage Report

Extension Coverage

Base branch: 46%

PR branch: 47%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 13%

PR branch: 13%

✅ Coverage increased or remained the same

Overall Assessment

Test coverage has been maintained or improved

Last updated: 2025-07-16T02:50:03.858437

@arafatkatze arafatkatze force-pushed the arafatkatze/groq-provider branch from bc266bc to beb1467 Compare July 15, 2025 20:55
@arafatkatze arafatkatze marked this pull request as ready for review July 15, 2025 22:08
@arafatkatze arafatkatze force-pushed the arafatkatze/groq-provider branch from 7a83d1a to 593cdfb Compare July 15, 2025 22:19
pashpashpash
pashpashpash previously approved these changes Jul 15, 2025
Copy link
Contributor

@pashpashpash pashpashpash left a comment

Choose a reason for hiding this comment

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

Tested, and it works (very fast might i add)

Copy link
Contributor

@celestial-vault celestial-vault left a comment

Choose a reason for hiding this comment

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

One question and two requested changes

@arafatkatze
Copy link
Contributor Author

@celestial-vault Thanks for the callouts I resolved all your suggested changes.

@arafatkatze
Copy link
Contributor Author

@celestial-vault Review is welcome.

@arafatkatze arafatkatze force-pushed the arafatkatze/groq-provider branch from d73898d to ab0266b Compare July 16, 2025 02:40
@pashpashpash pashpashpash merged commit 5dddbef into main Jul 16, 2025
12 checks passed
li-yechao pushed a commit to li-yechao/cline that referenced this pull request Jul 27, 2025
@AlexKer AlexKer mentioned this pull request Jul 29, 2025
11 tasks
dtrugman pushed a commit to dtrugman/cline that referenced this pull request Aug 24, 2025
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
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.

3 participants