docs: update the providers page for openai-compatible, registerProvider and provider imports
I maintainer di solito rispondono entro 1 giorno
@prakashNalla ci sta già lavorando.
Dal 21/10/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- markdown, typescript
- Ambito
- documentation
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 13
- Fork
- 7
- Merge medio
- 3h 41m
- PR unite (30g)
- 155
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codercops/chatcops
-
Document the pre-chat formForse già presa @masyarakatai l’ha presa 5 giorni fa. Apertadocumentation good first issue hacktoberfest widget
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
codercops/chatcops#70 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
docs: add a protocol reference page for custom clientsForse già presa @kachamsiddarth l’ha presa oggi. Apertadocumentation good first issue hacktoberfest website
codercops/chatcops#286 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Create @chatcops/store-cloudflare (D1, KV and a Durable Object counter)Forse già presa @bhushan4work l’ha presa oggi. Apertaenhancement hacktoberfest help wanted server
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
codercops/chatcops#249 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Create @chatcops/store-sqlite, a store for single-server setupsForse già presa @srikar-naidu l’ha presa oggi. Apertaenhancement hacktoberfest help wanted server
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
codercops/chatcops#247 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Batch analytics events into an EventSink and compute stats from itForse già presa @srujankaleru2007 l’ha presa oggi. Apertacore enhancement hacktoberfest help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
codercops/chatcops#246 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di codercops/chatcops
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
zts212653/clowder-ai#1678 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
Progressive-Victory/the-website#680 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100