refactor: remove native Groq and Cerebras support

VI
3d ago
+45-281

Why

Reduce native provider maintenance to OpenAI, Anthropic and Google.

What

Remove Groq and Cerebras adapters, dependencies, model types and configuration paths. Update v4 docs while preserving v3 documentation.

How

Validated provider rejection, protocol and extension tests, Python models, typechecks, SDK build and docs.


Summary by cubic

Removes native Groq and Cerebras provider support from Stagehand. groq/... and cerebras/... model names are now rejected at validation time; users must switch to OpenAI, Anthropic, Google, or a bring-your-own-LLM callback.

This reduces native provider maintenance to OpenAI, Anthropic, and Google. The AI SDK adapters, catalog dependencies, model types, provider API key lookups, and eval model lists are removed. v4 docs are updated while v2/v3 docs are preserved.

Breaking changes

  • groq/ and cerebras/ model prefixes fail validation in TypeScript, Python, and protocol schemas.
  • GROQ_API_KEY and CEREBRAS_API_KEY no longer apply to model configuration.
  • Exported GroqModel* and CerebrasModel* types are removed.

Go SDK changes are intentionally excluded from this PR.