Files
Peter SteinbergerandGitHub c7e7ac2728 refactor: remove expired plugin compatibility surfaces (#111451)
* docs(secrets): remove retired web credential paths

* refactor(web): remove retired provider compatibility paths

* refactor(providers): delete retired compatibility routes

* refactor(secrets): remove retired credential aliases

* refactor(plugin-sdk): delete retired compatibility surfaces

* docs(plugin-sdk): remove retired migration guidance

* chore(plugin-sdk): refresh rebased surface budgets

* chore(plugin-sdk): refresh API removal baseline

* refactor(compat): migrate retired internal callers

* chore(plugin-sdk): refresh current-main baselines

* test(config): migrate plugin-owned secret assertions

* test(gateway): narrow plugin secret refs

* fix(plugin-sdk): preserve private boundary type identity

* chore(compat): remove stale sweep references

* chore(lint): lower max-lines budget

* refactor(secrets): remove unused web helper

* build(plugin-sdk): drop removed compat entries

* chore(plugin-sdk): refresh rebased API baseline

* chore(plugin-sdk): use Linux API baseline hash

* fix(plugin-sdk): preserve private bundled build entries

* fix(plugin-sdk): package private runtime facades

* fix(plugins): preserve external credential contracts
2026-07-19 11:04:48 -07:00

232 lines
5.8 KiB
JSON

{
"id": "moonshot",
"activation": {
"onStartup": false
},
"enabledByDefault": true,
"providerCatalogEntry": "./provider-discovery.ts",
"providers": ["moonshot"],
"providerAuthAliases": {
"moonshotai": "moonshot",
"moonshot-ai": "moonshot"
},
"providerEndpoints": [
{
"endpointClass": "moonshot-native",
"baseUrls": ["https://api.moonshot.ai/v1", "https://api.moonshot.cn/v1"]
}
],
"providerRequest": {
"providers": {
"moonshot": {
"family": "moonshot",
"compatibilityFamily": "moonshot"
}
}
},
"modelPricing": {
"providers": {
"moonshot": {
"openRouter": {
"provider": "moonshotai"
},
"liteLLM": {
"provider": "moonshot"
}
}
}
},
"modelCatalog": {
"aliases": {
"moonshotai": {
"provider": "moonshot"
},
"moonshot-ai": {
"provider": "moonshot"
}
},
"providers": {
"moonshot": {
"baseUrl": "https://api.moonshot.ai/v1",
"api": "openai-completions",
"models": [
{
"id": "kimi-k2.6",
"name": "Kimi K2.6",
"input": ["text", "image"],
"contextWindow": 262144,
"maxTokens": 262144,
"cost": {
"input": 0.95,
"output": 4,
"cacheRead": 0.16,
"cacheWrite": 0
}
},
{
"id": "kimi-k3",
"name": "Kimi K3",
"reasoning": true,
"thinkingLevelMap": {
"off": null,
"minimal": null,
"low": null,
"medium": null,
"high": null,
"xhigh": "max",
"max": "max"
},
"input": ["text", "image"],
"contextWindow": 1048576,
"maxTokens": 1048576,
"cost": {
"input": 3,
"output": 15,
"cacheRead": 0.3,
"cacheWrite": 0
},
"compat": {
"supportsReasoningEffort": true,
"supportedReasoningEfforts": ["max"]
}
},
{
"id": "kimi-k2.7-code",
"name": "Kimi K2.7 Code",
"reasoning": true,
"input": ["text", "image"],
"contextWindow": 262144,
"maxTokens": 262144,
"cost": {
"input": 0.95,
"output": 4,
"cacheRead": 0.19,
"cacheWrite": 0
}
},
{
"id": "kimi-k2.7-code-highspeed",
"name": "Kimi K2.7 Code HighSpeed",
"reasoning": true,
"input": ["text", "image"],
"contextWindow": 262144,
"maxTokens": 262144,
"cost": {
"input": 1.9,
"output": 8,
"cacheRead": 0.38,
"cacheWrite": 0
}
},
{
"id": "kimi-k2.5",
"name": "Kimi K2.5",
"input": ["text", "image"],
"contextWindow": 262144,
"maxTokens": 262144,
"cost": {
"input": 0.6,
"output": 3,
"cacheRead": 0.1,
"cacheWrite": 0
}
}
]
}
},
"discovery": {
"moonshot": "static"
}
},
"setup": {
"providers": [
{
"id": "moonshot",
"envVars": ["MOONSHOT_API_KEY", "KIMI_API_KEY"]
}
]
},
"providerAuthChoices": [
{
"provider": "moonshot",
"method": "api-key",
"choiceId": "moonshot-api-key",
"appGuidedSecret": true,
"choiceLabel": "Moonshot API key (.ai)",
"groupId": "moonshot",
"groupLabel": "Moonshot AI (Kimi)",
"groupHint": "Kimi API models · https://platform.kimi.ai/docs/pricing/chat",
"optionKey": "moonshotApiKey",
"cliFlag": "--moonshot-api-key",
"cliOption": "--moonshot-api-key <key>",
"cliDescription": "Moonshot API key"
},
{
"provider": "moonshot",
"method": "api-key-cn",
"choiceId": "moonshot-api-key-cn",
"appGuidedSecret": true,
"choiceLabel": "Moonshot API key (.cn)",
"groupId": "moonshot",
"groupLabel": "Moonshot AI (Kimi)",
"groupHint": "Kimi API models · https://platform.kimi.ai/docs/pricing/chat",
"optionKey": "moonshotApiKey",
"cliFlag": "--moonshot-api-key",
"cliOption": "--moonshot-api-key <key>",
"cliDescription": "Moonshot API key"
}
],
"uiHints": {
"webSearch.apiKey": {
"label": "Kimi Search API Key",
"help": "Moonshot/Kimi API key (fallback: KIMI_API_KEY or MOONSHOT_API_KEY env var).",
"sensitive": true
},
"webSearch.baseUrl": {
"label": "Kimi Search Base URL",
"help": "Kimi base URL override."
},
"webSearch.model": {
"label": "Kimi Search Model",
"help": "Kimi model override."
}
},
"contracts": {
"mediaUnderstandingProviders": ["moonshot"],
"webSearchProviders": ["kimi"]
},
"mediaUnderstandingProviderMetadata": {
"moonshot": {
"capabilities": ["image", "video"],
"defaultModels": {
"image": "kimi-k2.6",
"video": "kimi-k2.6"
},
"autoPriority": {
"video": 20
}
}
},
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"webSearch": {
"type": "object",
"additionalProperties": false,
"properties": {
"apiKey": {
"type": ["string", "object"]
},
"baseUrl": {
"type": "string"
},
"model": {
"type": "string"
}
}
}
}
}
}