docs: update the providers page for openai-compatible, registerProvider and provider imports
Maintainer thường phản hồi trong vòng 1 ngày
@prakashNalla đang làm issue này rồi.
Từ ngày 21/10/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- markdown, typescript
- Lĩnh vực
- documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 13
- Fork
- 7
- Merge trung bình
- 3 giờ 41 phút
- Pull request đã merge (30 ngày)
- 155
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codercops/chatcops
-
Document the pre-chat formCó thể đã có người làm @masyarakatai đã nhận 6 ngày trước. Đang mởdocumentation good first issue hacktoberfest widget
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
codercops/chatcops#70 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: add a protocol reference page for custom clientsCó thể đã có người làm @kachamsiddarth đã nhận 1 ngày trước. Đang mởdocumentation good first issue hacktoberfest website
codercops/chatcops#286 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create @chatcops/store-cloudflare (D1, KV and a Durable Object counter)Có thể đã có người làm @bhushan4work đã nhận 1 ngày trước. Đang mởenhancement hacktoberfest help wanted server
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
codercops/chatcops#249 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create @chatcops/store-sqlite, a store for single-server setupsCó thể đã có người làm @srikar-naidu đã nhận 1 ngày trước. Đang mởenhancement hacktoberfest help wanted server
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
codercops/chatcops#247 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Batch analytics events into an EventSink and compute stats from itCó thể đã có người làm @srujankaleru2007 đã nhận 1 ngày trước. Đang mởcore enhancement hacktoberfest help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
codercops/chatcops#246 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codercops/chatcops
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
cursor/community-plugins#465 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
vetro-protocol/vetro-monorepo#978 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-generated bug category:security effort:s priority:p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
LanternOps/breeze#9697 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
maniator/verticopolis#1303 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
components-web-app/docs#297 ·