Skip to content

feat: integrate Groq API and resolve next-intl parsing issues - #421

Open
Arifuzzamanjoy wants to merge 2 commits into
ArnasDon:mainfrom
Arifuzzamanjoy:main
Open

feat: integrate Groq API and resolve next-intl parsing issues#421
Arifuzzamanjoy wants to merge 2 commits into
ArnasDon:mainfrom
Arifuzzamanjoy:main

Conversation

@Arifuzzamanjoy

Copy link
Copy Markdown

Description: Hey! This PR tackles two things:

Groq API Support: Added Groq as an official AI provider so users can bring their own Groq keys (which are insanely fast). Hooked it up using their OpenAI compatibility layer, set the default model to llama-3.1-8b-instant, and ran a quick DB migration to accept 'groq' in the ai_configs table.
Translation Crashes: Fixed the INVALID_MESSAGE runtime errors that were causing the Settings pages to crash. next-intl was choking on raw HTML tags and literal curly braces {{1}} in a few of the translation strings. I swapped out t() for t.raw() in the affected components to bypass the ICU parser, and cleaned up an invalid HTML attribute in the JSON files.
Everything is tested, and the test suite is fully green (645/645 passing).

This commit introduces native support for the Groq API as an AI provider
alongside OpenAI and Anthropic. It also resolves a series of translation
parsing errors that were crashing the settings pages.

Changes included:
- Replaced t() with t.raw() for strings containing raw HTML tags or literal curly braces to bypass ICU parsing errors.
- Cleaned up invalid HTML attributes inside ICU translation tags (scopesHint).
- Relaxed the ai_configs_provider_check database constraint to allow 'groq'.
- Replicated OpenAI's provider adapter for Groq's compatibility API endpoint.
- Updated Settings UI and translations to natively support Groq with llama-3.1-8b-instant as the default model.
@Arifuzzamanjoy
Arifuzzamanjoy requested a review from ArnasDon as a code owner July 20, 2026 21:10
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.

1 participant