docs: update the providers page for openai-compatible, registerProvider and provider imports
Los mantenedores suelen responder en 1 día
@prakashNalla ya está trabajando en esto.
Desde el 21/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 76/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- markdown, typescript
- Área
- documentation
Línea de trabajo
Read website/src/content/docs/core/providers.mdx alongside packages/core/src/types.ts and ProviderConfig to check the options table. Use packages/core/tests/providers/openai-compatible.test.ts and registry.test.ts for working examples, and review packages/core/src/providers/registry.ts, base.ts, and packages/server/src/config.ts for registration and custom provider behavior. Update the listed sections and examples, then verify them with the website build and add the empty changeset described in the issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Three provider changes landed this week and the providers page doesn't know about any of them yet: the openai-compatible type and registerProvider() (#289), the provider classes moving to their own import paths (#288), and the server taking a provider object you built yourself. This issue brings website/src/content/docs/core/providers.mdx up to date.
What to do
- "Provider configuration" (lines 8 to 31): add an
openai-compatibleblock. Note thatapiKeyis required forclaude,openaiandgemini, and setup fails with a clear error without it. - "Options" table (lines 43 to 53): add
headers(OpenAI and openai-compatible, sent on every request) andsupportsTools(same providers, defaulttrue, tools aren't sent whenfalseand one warning is logged). Change themaxTokensParamrow: the default is'max_completion_tokens'foropenaiand'max_tokens'foropenai-compatible. - "OpenAI-compatible servers" (lines 61 to 83): switch the Ollama and OpenRouter examples to
type: 'openai-compatible'. Ollama needs noapiKeynow, so drop the'ollama'placeholder line. Add one example withheaders(OpenRouter'sHTTP-Refereris a good one) and one withsupportsTools: falsefor a model that can't call tools.baseURLandmodelare required for this type. - New section "Custom providers", after "AIProvider interface":
registerProvider('my-llm', async (config) => new MyProvider(config)), thenprovider: { type: 'my-llm', ... }. The factory gets the whole provider config. Registering a built-in name throws, and registering the same name again replaces it.- The other way: pass the provider object itself as the server's
provider(packages/server/src/config.ts, lines 17 to 20). Anything withstep()orchat()works.
- "Direct provider usage" (lines 112 to 138): add a short note that
ClaudeProvider,OpenAIProviderandGeminiProviderare imported from@chatcops/core/providers/claude,/openaiand/gemini, not from@chatcops/core, so importing core doesn't load all three SDKs.
Where to look
packages/core/src/types.ts,ProviderConfigpackages/core/src/providers/registry.tsandbase.ts(createProvider)packages/core/tests/providers/openai-compatible.test.tsandregistry.test.tsfor working configs
Acceptance criteria
- Every option in
ProviderConfigis in the Options table, and nothing that isn't - Every code sample on the page matches the current types (copy them into a scratch
.tsfile inpackages/coreand runpnpm --filter @chatcops/core typecheck, then delete it) -
pnpm --filter @chatcops/website buildsucceeds - Changeset:
pnpm changeset --empty(docs only)
Please get this merged by Dec 8, since the v0.6 release notes link to it.
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #<this issue number>. Setup notes (pnpm, build before test) are in CONTRIBUTING.md.
- Lenguaje dominante
- TypeScript
- Estrellas
- 13
- Forks
- 7
- Merge medio
- 3 h 33 min
- PR fusionados (30 d)
- 176
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codercops/chatcops
-
Add startup checks that catch weak or leaked security settingsPosiblemente ocupada @varun-pahuja la tomó hace 2 días. Abiertoenhancement good first issue hacktoberfest server
codercops/chatcops#231 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Type-check the TypeScript samples in the docsPosiblemente ocupada @An16og la tomó hace 1 día. Abiertodocumentation hacktoberfest help wanted testing
Dificultad 4/5 3-5 días Aptitud para principiantes 70/100
codercops/chatcops#201 · 7 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Hacktoberfest 2026: start hereAbiertohacktoberfest
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
help wanted widget
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
codercops/chatcops#55 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de codercops/chatcops
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
logto-io/logto#9837 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
lingdojo/kana-dojo#32964 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
Documentation status: needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mastra-ai/mastra#28194 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
priority-low refactor-3
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 3 días