opencode-kimi-rotator 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Kimi API Key Rotator for OpenCode
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/opencode-kimi-rotator)
|
|
4
|
-
[](https://www.npmjs.com/package/opencode-kimi-rotator)
|
|
4
|
+
[](https://www.npmjs.com/package/opencode-kimi-rotator)
|
|
6
5
|
[](LICENSE)
|
|
7
6
|
|
|
8
7
|
Automatically rotate between multiple Kimi API keys to handle rate limits and distribute load across accounts.
|
|
@@ -60,9 +59,21 @@ irm https://raw.githubusercontent.com/deyndev/opencode-kimi-rotator/main/scripts
|
|
|
60
59
|
"models": {
|
|
61
60
|
"kimi-for-coding": {
|
|
62
61
|
"name": "Kimi K2.5 (via Kimi API)",
|
|
62
|
+
"attachment": true,
|
|
63
63
|
"limit": {
|
|
64
64
|
"context": 262144,
|
|
65
65
|
"output": 32768
|
|
66
|
+
},
|
|
67
|
+
"modalities": {
|
|
68
|
+
"input": [
|
|
69
|
+
"text",
|
|
70
|
+
"image",
|
|
71
|
+
"video",
|
|
72
|
+
"pdf"
|
|
73
|
+
],
|
|
74
|
+
"output": [
|
|
75
|
+
"text"
|
|
76
|
+
]
|
|
66
77
|
}
|
|
67
78
|
}
|
|
68
79
|
}
|
|
@@ -115,7 +126,22 @@ Add the plugin to your existing config. The plugin path must use the full absolu
|
|
|
115
126
|
"models": {
|
|
116
127
|
"kimi-for-coding": {
|
|
117
128
|
"name": "Kimi K2.5 (via Kimi API)",
|
|
118
|
-
"
|
|
129
|
+
"attachment": true,
|
|
130
|
+
"limit": {
|
|
131
|
+
"context": 262144,
|
|
132
|
+
"output": 32768
|
|
133
|
+
},
|
|
134
|
+
"modalities": {
|
|
135
|
+
"input": [
|
|
136
|
+
"text",
|
|
137
|
+
"image",
|
|
138
|
+
"video",
|
|
139
|
+
"pdf"
|
|
140
|
+
],
|
|
141
|
+
"output": [
|
|
142
|
+
"text"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
119
145
|
}
|
|
120
146
|
}
|
|
121
147
|
}
|
|
@@ -207,13 +233,21 @@ Add this to your `~/.config/opencode/opencode.json`:
|
|
|
207
233
|
"models": {
|
|
208
234
|
"kimi-for-coding": {
|
|
209
235
|
"name": "Kimi K2.5 (via Kimi API)",
|
|
236
|
+
"attachment": true,
|
|
210
237
|
"limit": {
|
|
211
238
|
"context": 262144,
|
|
212
239
|
"output": 32768
|
|
213
240
|
},
|
|
214
241
|
"modalities": {
|
|
215
|
-
"input": [
|
|
216
|
-
|
|
242
|
+
"input": [
|
|
243
|
+
"text",
|
|
244
|
+
"image",
|
|
245
|
+
"video",
|
|
246
|
+
"pdf"
|
|
247
|
+
],
|
|
248
|
+
"output": [
|
|
249
|
+
"text"
|
|
250
|
+
]
|
|
217
251
|
}
|
|
218
252
|
}
|
|
219
253
|
}
|
|
@@ -486,3 +520,28 @@ npm link
|
|
|
486
520
|
## License
|
|
487
521
|
|
|
488
522
|
MIT License. See [LICENSE](LICENSE) for details.
|
|
523
|
+
|
|
524
|
+
<details>
|
|
525
|
+
<summary><b>Legal</b></summary>
|
|
526
|
+
|
|
527
|
+
### Intended Use
|
|
528
|
+
|
|
529
|
+
- Personal / internal development only
|
|
530
|
+
- Respect internal quotas and data handling policies
|
|
531
|
+
- Not for production services or bypassing intended limits
|
|
532
|
+
|
|
533
|
+
### Warning
|
|
534
|
+
|
|
535
|
+
By using this plugin, you acknowledge:
|
|
536
|
+
|
|
537
|
+
- **Terms of Service risk** — This approach may violate ToS of AI model providers
|
|
538
|
+
- **Account risk** — Providers may suspend or ban accounts
|
|
539
|
+
- **No guarantees** — APIs may change without notice
|
|
540
|
+
- **Assumption of risk** — You assume all legal, financial, and technical risks
|
|
541
|
+
|
|
542
|
+
### Disclaimer
|
|
543
|
+
|
|
544
|
+
- Not affiliated with Moonshot AI. This is an independent open-source project.
|
|
545
|
+
- "Kimi", "Moonshot", and "Moonshot AI" are trademarks of Moonshot AI.
|
|
546
|
+
|
|
547
|
+
</details>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-kimi-rotator",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Kimi API Key Rotator for OpenCode - Automatically rotate between multiple Kimi API keys to handle rate limits",
|
|
5
5
|
"main": "./dist/plugin.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
}
|