docs: update the providers page for openai-compatible, registerProvider and provider imports
メンテナーはふだん 1 日以内に返信
@prakashNalla がすでに取り組んでいます。
2026年10月21日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 76/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- markdown, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 13
- フォーク
- 7
- 平均マージ
- 3時間 33分
- マージ済み PR(30日)
- 176
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codercops/chatcops のほかの issue
-
Add startup checks that catch weak or leaked security settings対応中かも @varun-pahuja が 2 日前に担当しました。 オープンenhancement good first issue hacktoberfest server
codercops/chatcops#231 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Type-check the TypeScript samples in the docs対応中かも @An16og が 1 日前に担当しました。 オープンdocumentation hacktoberfest help wanted testing
難易度 4/5 3〜5日 初心者へのやさしさ 70/100
codercops/chatcops#201 · コメント 7 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
hacktoberfest
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
Add built-in translations to the widget対応中かも @piyusshhjangid が今日担当しました。 オープンhelp wanted widget
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
codercops/chatcops#55 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
codercops/chatcops の issue をすべて見る
似ている issue
-
数据界面的横向滚动条缺失オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
zilliztech/attu#1037 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openclaw/openclaw#181212 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apify/apify-mcp-server#1684 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Automattic/data-liberation-agent#953 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
siteboon/claudecodeui#1642 ·
メンテナーはふだん 5 日以内に返信