Kimi and Kimi CN join the provider catalog: OpenAI-compatible endpoints, verified live
- kimi -> https://api.moonshot.ai/v1 (platform.kimi.ai keys), kimi-cn -> https://api.moonshot.cn/v1 (platform.kimi.com keys) - Adapters via openAiCompatibleAdapter; agent loop via makeChatCompletionsTurn; live model listing - Curated fallback models per current docs: kimi-k2.7-code, kimi-k2.7-code-highspeed, kimi-k2.6 - Migration 056 seeds both providers (disabled) into existing organizations - Both endpoints probed live: OpenAI-style 401 error envelope confirmed
This commit is contained in:
1 parent
c30cbce459
commit
813276de71
9 files changed
+60
-2
No files matched your search
@@ -210,6 +210,18 @@ export const providerAdapters: ProviderAdapterRegistry = {
|
||||
endpoint: "https://openrouter.ai/api/v1/chat/completions",
|
||||
healthUrl: "https://openrouter.ai/api/v1/models",
|
||||
}),
|
||||
kimi: openAiCompatibleAdapter({
|
||||
providerKey: "kimi",
|
||||
label: "Kimi",
|
||||
endpoint: "https://api.moonshot.ai/v1/chat/completions",
|
||||
healthUrl: "https://api.moonshot.ai/v1/models",
|
||||
}),
|
||||
"kimi-cn": openAiCompatibleAdapter({
|
||||
providerKey: "kimi-cn",
|
||||
label: "Kimi CN",
|
||||
endpoint: "https://api.moonshot.cn/v1/chat/completions",
|
||||
healthUrl: "https://api.moonshot.cn/v1/models",
|
||||
}),
|
||||
"github-copilot": browserTokenAdapter("github-copilot", PROVIDER_AUTH_TYPE.OAUTH_PKCE),
|
||||
"google-antigravity": browserTokenAdapter("google-antigravity", PROVIDER_AUTH_TYPE.OAUTH_PKCE),
|
||||
"gpt-account": browserTokenAdapter("gpt-account", PROVIDER_AUTH_TYPE.ACCOUNT_SUBSCRIPTION),
|
||||
|
||||
@@ -23,6 +23,8 @@ const TURNS: Record<string, ToolTurnFn> = {
|
||||
mistral: makeChatCompletionsTurn("https://api.mistral.ai/v1/chat/completions", "Mistral"),
|
||||
cerebras: makeChatCompletionsTurn("https://api.cerebras.ai/v1/chat/completions", "Cerebras"),
|
||||
openrouter: makeChatCompletionsTurn("https://openrouter.ai/api/v1/chat/completions", "OpenRouter"),
|
||||
kimi: makeChatCompletionsTurn("https://api.moonshot.ai/v1/chat/completions", "Kimi"),
|
||||
"kimi-cn": makeChatCompletionsTurn("https://api.moonshot.cn/v1/chat/completions", "Kimi CN"),
|
||||
"gpt-account": runCodexTurn,
|
||||
"github-copilot": runCopilotTurn,
|
||||
"google-antigravity": runAntigravityTurn,
|
||||
|
||||
Reference in new issue
Block a user