feat(ai): added Kimi Code provider integration with OAuth and token management

- Added Kimi Code provider integration with OAuth device authorization flow and token management.
- Added four new Kimi Code models (kimi-for-coding, kimi-k2, kimi-k2-turbo-preview, kimi-k2.5) with reasoning support and 262K context window.
- Added kimiUsageProvider for fetching and caching Kimi Code API usage quota information.
- Added kimi-code login command to CLI for OAuth authentication with Kimi Code.
- Updated openai-completions provider to support Kimi-specific headers and cached token formats.
- Updated MiniMax-M2 model pricing: input 1.2->0.6, output 1.2->3, cacheRead 0.6->0.1.
This commit is contained in:
can1357
2026-01-28 13:21:32 +01:00
parent 34569030c6
commit a91330bae0
14 changed files with 867 additions and 28 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
"release": "bun scripts/release.ts"
},
"devDependencies": {
"@biomejs/biome": "2.3.12",
"@biomejs/biome": "2.3.13",
"@bufbuild/protoc-gen-es": "^2.10.2",
"@types/bun": "^1.2.18",
"@types/node": "^25.0.10",