[Feature] Add a provider self-test command (kimi provider test <id>)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start by reading the existing kimi doctor and kimi provider command entry points mentioned in the issue to see how commands validate configuration and handle provider operations. Then trace how provider requests, streaming, usage, tool calls, and thinking settings are represented. Done means the command supports the requested checks and stable --json output, with tests covering the reported provider failures.
索引モデルが issue の本文から書いたものです。
説明
What feature would you like to see?
Add a provider self-test command:
kimi provider test <providerId> [--model <alias>] [--json]
It should send a minimal request (one non-streaming call and one streaming call, plus one tiny tool call when the model declares tool_use) and report:
- transport and auth: base URL, protocol, HTTP status, headers the server rejects;
- streaming behavior: whether chunks arrive, whether a finish event /
finish_reasonis present, whether the stream ends cleanly; - usage shape: which fields the provider returns (
prompt_tokens/input_tokens/cached_tokens/cachedContentTokenCount/usage), and whether the provider reports cached-token counts at all; - tool calling: whether tool-call arguments stream correctly and are complete at
finish_reason; - thinking: whether reasoning can be disabled, and which effort values the provider accepts;
- a short verdict with a suggested fix for common failures (missing custom header, unknown model id, invalid effort, non-conforming usage).
--json should return the same data as a stable object suitable for CI.
Additional information
Why this is worth adding: configuring a non-managed provider currently requires guessing a lot of protocol details. In this week's real setup work, four separate problems each took a manual probe to diagnose:
- a gateway required an
x-opencode-sessionheader and returned400 MissingSessionIDwithout it; - a model alias with a
[1M]suffix was rejected while the base model id worked; - a Gemini model always reasons, and sending thinking
offproduced400 ... thinking cannot be turned off. Choose a concrete thinking effort; - the provider's
usageMetadatahad nocachedContentTokenCount, which silently disables Kimi's measured token accounting and feeds issue #5064 (auto-compaction sees a message-only estimate).
kimi doctor currently validates config.toml / tui.toml syntax only, and kimi provider only supports add/remove/list/catalog. A provider-level request test would turn each of those into a one-command diagnosis, and would also make it obvious when a provider cannot report cached tokens (which changes compaction behavior).
I checked the tracker for provider health/connection tests and found no existing request. I understand external feature PRs are not accepted; I am only proposing the feature and can provide reproductions or output-format suggestions if the team picks it up.
- 主要言語
- TypeScript
- スター
- 8.3k
- フォーク
- 1.4k
- 平均マージ
- 12時間 6分
- マージ済み PR(30日)
- 596
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MoonshotAI/kimi-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MoonshotAI/kimi-code#5539 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directories対応中かも @markankamaransheogarat-sys が 2 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MoonshotAI/kimi-code#5296 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MoonshotAI/kimi-code#5256 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MoonshotAI/kimi-code#5062 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
MoonshotAI/kimi-code#5057 ·
メンテナーはふだん 1 日以内に返信
MoonshotAI/kimi-code の issue をすべて見る
似ている issue
-
Add Alice&Botオープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
midnightntwrk/midnight-faucet-api#215 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NanmiCoder/cc-haha#2034 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mobile prio:low
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
digitalfabrik/entitlementcard#3324 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信