Skip to content

Give Groq its own key and model - #2

Merged
veer0608 merged 1 commit into
mainfrom
groq-is-its-own-provider
Aug 27, 2026
Merged

Give Groq its own key and model#2
veer0608 merged 1 commit into
mainfrom
groq-is-its-own-provider

Conversation

@veer0608

Copy link
Copy Markdown
Owner

Groq speaks the OpenAI wire format, so it reuses the same tested adapter. It was reaching that adapter by borrowing OPENAI_API_KEY and overriding the base URL. That works, and it reads like a mistake: a gsk_ key living under a name that says "openai" is a trap for whoever opens the file next.

PROVIDER=groq now has groq_api_key, groq_model and groq_base_url of its own, and appears in active_model and has_credentials alongside the other providers. OPENAI_BASE_URL stays for anything else that speaks the same format (Together, OpenRouter, a local server), which is what it was for.

Three tests, 36 total:

  • the provider builds the OpenAI adapter against Groq's endpoint
  • it falls back to the demo model when its own key is absent, rather than quietly using OpenAI's
  • active_model reports Groq's model

The eval writeup's reproduce block uses the new variables. Verified by running the suite end to end on the renamed config.

Groq speaks the OpenAI wire format, so it reuses the same tested adapter. It
was reaching that adapter by borrowing OPENAI_API_KEY and overriding the base
URL, which works and reads like a mistake: a gsk_ key living under a name
that says "openai" is a trap for whoever opens the file next.

So PROVIDER=groq now has groq_api_key, groq_model and groq_base_url of its
own, and appears in active_model and has_credentials alongside the others.
OPENAI_BASE_URL stays for anything else that speaks the same format, which is
what it was for.

Three tests: the provider builds the OpenAI adapter against Groq's endpoint,
it falls back to the demo model when its own key is absent rather than
quietly using OpenAI's, and active_model reports the right one.
@veer0608
veer0608 merged commit db3d6be into main Aug 27, 2026
1 check passed
@veer0608
veer0608 deleted the groq-is-its-own-provider branch August 27, 2026 12:13
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