[Feature] Add a provider self-test command (kimi provider test <id>)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend-api-design, cli
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.3k
- Forks
- 1.4k
- Merge medio
- 12 h 6 min
- PR fusionados (30 d)
- 596
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 MoonshotAI/kimi-code
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
MoonshotAI/kimi-code#5539 ·
Los mantenedores suelen responder en 1 día
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directoriesPosiblemente ocupada @markankamaransheogarat-sys la tomó hace 2 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
MoonshotAI/kimi-code#5296 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MoonshotAI/kimi-code#5256 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MoonshotAI/kimi-code#5062 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
MoonshotAI/kimi-code#5057 ·
Los mantenedores suelen responder en 1 día
Todos los issues de MoonshotAI/kimi-code
Issues similares
-
Add Alice&BotAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
midnightntwrk/midnight-faucet-api#215 ·
Los mantenedores suelen responder en 1 día
-
[功能] 手机端命令执行显示 AI 动作描述Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NanmiCoder/cc-haha#2034 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
mobile prio:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
digitalfabrik/entitlementcard#3324 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día