Repository navigation
feat(api): cambia el proveedor LLM de Claude a Groq (RF-07) - #22
Merged
Merged
Conversation
La generación pasa a Groq (`openai/gpt-oss-120b`) tras descartar Gemini (503 repetidos en el tier gratuito de la API) y OpenRouter (404 "unavailable for free" en los modelos gratuitos pese a tener cuota intacta). La capa gratuita de Groq no usa créditos, solo límites de tasa, y no pide tarjeta, así que la demo pública funciona sin coste. Solo cambia el adaptador: el puerto LlmProvider, el prompt (RNF-05) y las citas quedan igual. Las variables pasan a GROQ_API_KEY y GROQ_MODEL. REQUIREMENTS.md registra la decisión en la sección 10, y README y CLAUDE.md dejan de nombrar a Claude/Haiku como modelo de generación. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
openai/gpt-oss-120b,https://api.groq.com/openai/v1/chat/completions) con un adaptador nuevo,groq-llm.provider.ts, que sustituye aclaude-llm.provider.ts. HTTP directo, sin SDK, igual que Voyage.REQUIREMENTS.md§10 (2026-09-28): Gemini devolvía 503 repetidos en el tier gratuito de su API y OpenRouter daba 404 "unavailable for free" en tres modelos:freepese a tener la cuota intacta. La capa gratuita de Groq no usa créditos, solo límites de tasa, y no pide tarjeta.LlmProvider, el prompt (separación dato/instrucción de RNF-05) y las citas no cambian; solo el adaptador y la configuración.CLAUDE_API_KEY/CLAUDE_MODEL→GROQ_API_KEY/GROQ_MODEL(config.ts,.env.example, config de tests).CLAUDE.md,REQUIREMENTS.md(tabla de stack y §10) yREADME.md(arquitectura, stack, cómo ejecutarlo, nueva decisión "Generación", costes) dejan de nombrar Claude/Haiku. También se quita de la justificación de Voyage el motivo "integración coherente con Claude", que ya no aplica..envlocal: después de mergear hay que añadirGROQ_API_KEY(y quitarCLAUDE_API_KEY), o la API no arranca porque la validación de configuración falla.#23 (rate limiting) está apilada sobre esta rama: mergear esta primero.
Test plan
pnpm --filter @docqa/api lint/typecheckpnpm --filter @docqa/api test(tests del adaptador confetchmockeado: cabeceras, cuerpo, errores HTTP, respuesta vacía)pnpm --filter @docqa/api test:integration(Mongo real, verificado junto con feat(api): límite de 20 preguntas por minuto por usuario (RNF-04) #23)GROQ_API_KEYreal y comprobar respuesta y citas🤖 Generated with Claude Code