@eum-agent/llm-provider-kimi 0.0.0-stage → 1.1.0
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/assets/NOTICE +28 -0
- package/assets/kimi-coding-cn.svg +1 -0
- package/assets/kimi-coding.svg +1 -0
- package/assets/moonshot-cn.svg +1 -0
- package/assets/moonshot.svg +1 -0
- package/dist/index.js +690 -0
- package/package.json +38 -3
- package/README.md +0 -3
package/assets/NOTICE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Vendor marks from lobehub/lobe-icons (@lobehub/icons-static-svg 1.95.1, MIT), except where noted. Each file is named for the catalogue row contributed by its owning provider extension.
|
|
2
|
+
|
|
3
|
+
- zhipu*.svg: the Z glyph from Z.ai's own logo (https://z-cdn.chatglm.cn/z-ai/static/logo.svg), without its dark tile.
|
|
4
|
+
- kimi-coding*.svg: the K filled black, as kimi.com's light-scheme favicon draws it; the lobe-icons original fills it white.
|
|
5
|
+
|
|
6
|
+
The lobe-icons marks are distributed under the MIT License:
|
|
7
|
+
|
|
8
|
+
MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2023 LobeHub
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height="24" style="flex:none;line-height:1" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title>Kimi</title><path d="M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z" fill="#1783FF"></path><path d="M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z" fill="#000"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height="24" style="flex:none;line-height:1" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title>Kimi</title><path d="M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z" fill="#1783FF"></path><path d="M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z" fill="#000"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="currentColor" fill-rule="evenodd" height="24" style="flex:none;line-height:1" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title>MoonshotAI</title><path d="M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="currentColor" fill-rule="evenodd" height="24" style="flex:none;line-height:1" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title>MoonshotAI</title><path d="M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"></path></svg>
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/catalog.ts
|
|
3
|
+
/** Supplier-owned catalogue rows; protocol request facts belong to protocol registrations. */
|
|
4
|
+
const catalog = {
|
|
5
|
+
vendors: [
|
|
6
|
+
{
|
|
7
|
+
kind: "vendor",
|
|
8
|
+
id: "moonshot-cn",
|
|
9
|
+
logo: "data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20height%3D%2224%22%20style%3D%22flex%3Anone%3Bline-height%3A1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3EMoonshotAI%3C%2Ftitle%3E%3Cpath%20d%3D%22M1.052%2016.916l9.539%202.552a21.007%2021.007%200%2000.06%202.033l5.956%201.593a11.997%2011.997%200%2001-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605%2011.605%200%2001-.157-.02l-.107-.014-.11-.016a11.962%2011.962%200%2001-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293%206.293%200%2001-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655%205.655%200%2001-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49%206.49%200%2001-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785%207.785%200%2001-.054-.036l-.044-.03-.044-.03a6.066%206.066%200%2001-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516%207.516%200%2001-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28%2013.28%200%2001-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457%206.457%200%2001-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175%207.175%200%2001-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99%2011.99%200%2001-1.44-2.402zm-1.02-5.794l11.353%203.037a20.468%2020.468%200%2000-.469%202.011l10.817%202.894a12.076%2012.076%200%2001-1.845%202.005L.657%2015.923l-.016-.046-.035-.104a11.965%2011.965%200%2001-.05-.153l-.007-.023a11.896%2011.896%200%2001-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01%2012.01%200%2001-.019-.161l-.005-.047a12.12%2012.12%200%2001-.034-2.145zm1.593-5.15l11.948%203.196c-.368.605-.705%201.231-1.01%201.875l11.295%203.022c-.142.82-.368%201.612-.668%202.365l-11.55-3.09L.124%2010.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896%2011.896%200%20011.01-2.232zm4.442-4.4L17.352%204.59a20.77%2020.77%200%2000-1.688%201.721l7.823%202.093c.267.852.442%201.744.513%202.665L2.106%205.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084%2012.084%200%20012.272-1.677zM12.017%200h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6%201.353%201.283%201.909%202.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E",
|
|
10
|
+
name: "月之暗面 Kimi",
|
|
11
|
+
region: "国内",
|
|
12
|
+
market: "domestic",
|
|
13
|
+
catalogKey: "moonshotai-cn",
|
|
14
|
+
canListModels: true,
|
|
15
|
+
endpoints: [{
|
|
16
|
+
baseUrl: "https://api.moonshot.cn/v1",
|
|
17
|
+
thinkingSwitch: true,
|
|
18
|
+
alwaysThinking: ["kimi-k3"],
|
|
19
|
+
type: "kimi",
|
|
20
|
+
endpointId: "moonshot-cn",
|
|
21
|
+
protocolIds: [
|
|
22
|
+
"openai",
|
|
23
|
+
"openai-responses",
|
|
24
|
+
"anthropic"
|
|
25
|
+
]
|
|
26
|
+
}]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
kind: "vendor",
|
|
30
|
+
id: "moonshot",
|
|
31
|
+
logo: "data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20height%3D%2224%22%20style%3D%22flex%3Anone%3Bline-height%3A1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3EMoonshotAI%3C%2Ftitle%3E%3Cpath%20d%3D%22M1.052%2016.916l9.539%202.552a21.007%2021.007%200%2000.06%202.033l5.956%201.593a11.997%2011.997%200%2001-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605%2011.605%200%2001-.157-.02l-.107-.014-.11-.016a11.962%2011.962%200%2001-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293%206.293%200%2001-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655%205.655%200%2001-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49%206.49%200%2001-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785%207.785%200%2001-.054-.036l-.044-.03-.044-.03a6.066%206.066%200%2001-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516%207.516%200%2001-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28%2013.28%200%2001-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457%206.457%200%2001-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175%207.175%200%2001-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99%2011.99%200%2001-1.44-2.402zm-1.02-5.794l11.353%203.037a20.468%2020.468%200%2000-.469%202.011l10.817%202.894a12.076%2012.076%200%2001-1.845%202.005L.657%2015.923l-.016-.046-.035-.104a11.965%2011.965%200%2001-.05-.153l-.007-.023a11.896%2011.896%200%2001-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01%2012.01%200%2001-.019-.161l-.005-.047a12.12%2012.12%200%2001-.034-2.145zm1.593-5.15l11.948%203.196c-.368.605-.705%201.231-1.01%201.875l11.295%203.022c-.142.82-.368%201.612-.668%202.365l-11.55-3.09L.124%2010.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896%2011.896%200%20011.01-2.232zm4.442-4.4L17.352%204.59a20.77%2020.77%200%2000-1.688%201.721l7.823%202.093c.267.852.442%201.744.513%202.665L2.106%205.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084%2012.084%200%20012.272-1.677zM12.017%200h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6%201.353%201.283%201.909%202.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E",
|
|
32
|
+
name: "月之暗面 Kimi",
|
|
33
|
+
region: "国际",
|
|
34
|
+
market: "international",
|
|
35
|
+
catalogKey: "moonshotai",
|
|
36
|
+
canListModels: true,
|
|
37
|
+
endpoints: [{
|
|
38
|
+
baseUrl: "https://api.moonshot.ai/v1",
|
|
39
|
+
thinkingSwitch: true,
|
|
40
|
+
alwaysThinking: ["kimi-k3"],
|
|
41
|
+
type: "kimi",
|
|
42
|
+
endpointId: "moonshot",
|
|
43
|
+
protocolIds: [
|
|
44
|
+
"openai",
|
|
45
|
+
"openai-responses",
|
|
46
|
+
"anthropic"
|
|
47
|
+
]
|
|
48
|
+
}]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
kind: "vendor",
|
|
52
|
+
id: "kimi-coding-cn",
|
|
53
|
+
logo: "data:image/svg+xml,%3Csvg%20height%3D%2224%22%20style%3D%22flex%3Anone%3Bline-height%3A1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3EKimi%3C%2Ftitle%3E%3Cpath%20d%3D%22M21.846%200a1.923%201.923%200%20110%203.846H20.15a.226.226%200%2001-.227-.226V1.923C19.923.861%2020.784%200%2021.846%200z%22%20fill%3D%22%231783FF%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M11.065%2011.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164%200%2000-.117.051l-7.82%207.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103%200-.186.103-.186.23V19.77c0%20.128.083.23.186.23h2.69c.103%200%20.186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158%200%2001.205-.023l6.484%204.772a7.677%207.677%200%20003.453%201.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028%205.028%200%2001-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z%22%20fill%3D%22%23000%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E",
|
|
54
|
+
name: "Kimi For Coding",
|
|
55
|
+
region: "国内",
|
|
56
|
+
market: "domestic",
|
|
57
|
+
catalogKey: "kimi-code-plan-cn",
|
|
58
|
+
canListModels: true,
|
|
59
|
+
endpoints: [{
|
|
60
|
+
baseUrl: "https://api.kimi.com/coding/v1",
|
|
61
|
+
thinkingSwitch: true,
|
|
62
|
+
type: "kimi",
|
|
63
|
+
endpointId: "kimi-coding-cn",
|
|
64
|
+
protocolIds: [
|
|
65
|
+
"openai",
|
|
66
|
+
"openai-responses",
|
|
67
|
+
"anthropic"
|
|
68
|
+
]
|
|
69
|
+
}]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
kind: "vendor",
|
|
73
|
+
id: "kimi-coding",
|
|
74
|
+
logo: "data:image/svg+xml,%3Csvg%20height%3D%2224%22%20style%3D%22flex%3Anone%3Bline-height%3A1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3EKimi%3C%2Ftitle%3E%3Cpath%20d%3D%22M21.846%200a1.923%201.923%200%20110%203.846H20.15a.226.226%200%2001-.227-.226V1.923C19.923.861%2020.784%200%2021.846%200z%22%20fill%3D%22%231783FF%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M11.065%2011.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164%200%2000-.117.051l-7.82%207.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103%200-.186.103-.186.23V19.77c0%20.128.083.23.186.23h2.69c.103%200%20.186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158%200%2001.205-.023l6.484%204.772a7.677%207.677%200%20003.453%201.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028%205.028%200%2001-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z%22%20fill%3D%22%23000%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E",
|
|
75
|
+
name: "Kimi For Coding",
|
|
76
|
+
region: "国际",
|
|
77
|
+
market: "international",
|
|
78
|
+
catalogKey: "kimi-code-plan-global",
|
|
79
|
+
canListModels: true,
|
|
80
|
+
endpoints: [{
|
|
81
|
+
baseUrl: "https://api.kimi.ai/coding/v1",
|
|
82
|
+
thinkingSwitch: true,
|
|
83
|
+
type: "kimi",
|
|
84
|
+
endpointId: "kimi-coding",
|
|
85
|
+
protocolIds: [
|
|
86
|
+
"openai",
|
|
87
|
+
"openai-responses",
|
|
88
|
+
"anthropic"
|
|
89
|
+
]
|
|
90
|
+
}]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
snapshot: {
|
|
94
|
+
"moonshot-cn": {
|
|
95
|
+
"kimi-k3": {
|
|
96
|
+
"id": "kimi-k3",
|
|
97
|
+
"name": "Kimi K3",
|
|
98
|
+
"family": "kimi-k3",
|
|
99
|
+
"reasoning": true,
|
|
100
|
+
"reasoning_options": [{ "type": "toggle" }, {
|
|
101
|
+
"type": "effort",
|
|
102
|
+
"values": [
|
|
103
|
+
"low",
|
|
104
|
+
"high",
|
|
105
|
+
"max"
|
|
106
|
+
]
|
|
107
|
+
}],
|
|
108
|
+
"temperature": false,
|
|
109
|
+
"tool_call": true,
|
|
110
|
+
"attachment": true,
|
|
111
|
+
"modalities": {
|
|
112
|
+
"input": [
|
|
113
|
+
"text",
|
|
114
|
+
"image",
|
|
115
|
+
"video"
|
|
116
|
+
],
|
|
117
|
+
"output": ["text"]
|
|
118
|
+
},
|
|
119
|
+
"limit": {
|
|
120
|
+
"context": 1048576,
|
|
121
|
+
"output": 131072
|
|
122
|
+
},
|
|
123
|
+
"release_date": "2026-07-16"
|
|
124
|
+
},
|
|
125
|
+
"kimi-k2.7-code": {
|
|
126
|
+
"id": "kimi-k2.7-code",
|
|
127
|
+
"name": "Kimi K2.7 Code",
|
|
128
|
+
"family": "kimi-k2",
|
|
129
|
+
"reasoning": true,
|
|
130
|
+
"reasoning_options": [],
|
|
131
|
+
"temperature": false,
|
|
132
|
+
"tool_call": true,
|
|
133
|
+
"attachment": true,
|
|
134
|
+
"modalities": {
|
|
135
|
+
"input": [
|
|
136
|
+
"text",
|
|
137
|
+
"image",
|
|
138
|
+
"video"
|
|
139
|
+
],
|
|
140
|
+
"output": ["text"]
|
|
141
|
+
},
|
|
142
|
+
"limit": {
|
|
143
|
+
"context": 262144,
|
|
144
|
+
"output": 262144
|
|
145
|
+
},
|
|
146
|
+
"release_date": "2026-06-12"
|
|
147
|
+
},
|
|
148
|
+
"kimi-k2.6": {
|
|
149
|
+
"id": "kimi-k2.6",
|
|
150
|
+
"name": "Kimi K2.6",
|
|
151
|
+
"family": "kimi-k2",
|
|
152
|
+
"reasoning": true,
|
|
153
|
+
"reasoning_options": [{ "type": "toggle" }],
|
|
154
|
+
"temperature": true,
|
|
155
|
+
"tool_call": true,
|
|
156
|
+
"attachment": true,
|
|
157
|
+
"modalities": {
|
|
158
|
+
"input": [
|
|
159
|
+
"text",
|
|
160
|
+
"image",
|
|
161
|
+
"video"
|
|
162
|
+
],
|
|
163
|
+
"output": ["text"]
|
|
164
|
+
},
|
|
165
|
+
"limit": {
|
|
166
|
+
"context": 262144,
|
|
167
|
+
"output": 262144
|
|
168
|
+
},
|
|
169
|
+
"release_date": "2026-04-21"
|
|
170
|
+
},
|
|
171
|
+
"kimi-k2.7-code-highspeed": {
|
|
172
|
+
"id": "kimi-k2.7-code-highspeed",
|
|
173
|
+
"name": "Kimi K2.7 Code HighSpeed",
|
|
174
|
+
"family": "kimi-k2",
|
|
175
|
+
"reasoning": true,
|
|
176
|
+
"reasoning_options": [],
|
|
177
|
+
"temperature": false,
|
|
178
|
+
"tool_call": true,
|
|
179
|
+
"attachment": true,
|
|
180
|
+
"modalities": {
|
|
181
|
+
"input": [
|
|
182
|
+
"text",
|
|
183
|
+
"image",
|
|
184
|
+
"video"
|
|
185
|
+
],
|
|
186
|
+
"output": ["text"]
|
|
187
|
+
},
|
|
188
|
+
"limit": {
|
|
189
|
+
"context": 262144,
|
|
190
|
+
"output": 262144
|
|
191
|
+
},
|
|
192
|
+
"release_date": "2026-06-12"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"moonshot": {
|
|
196
|
+
"kimi-k2.7-code-highspeed": {
|
|
197
|
+
"id": "kimi-k2.7-code-highspeed",
|
|
198
|
+
"name": "Kimi K2.7 Code HighSpeed",
|
|
199
|
+
"family": "kimi-k2",
|
|
200
|
+
"reasoning": true,
|
|
201
|
+
"reasoning_options": [],
|
|
202
|
+
"temperature": false,
|
|
203
|
+
"tool_call": true,
|
|
204
|
+
"attachment": true,
|
|
205
|
+
"modalities": {
|
|
206
|
+
"input": [
|
|
207
|
+
"text",
|
|
208
|
+
"image",
|
|
209
|
+
"video"
|
|
210
|
+
],
|
|
211
|
+
"output": ["text"]
|
|
212
|
+
},
|
|
213
|
+
"limit": {
|
|
214
|
+
"context": 262144,
|
|
215
|
+
"output": 262144
|
|
216
|
+
},
|
|
217
|
+
"release_date": "2026-06-12"
|
|
218
|
+
},
|
|
219
|
+
"kimi-k2.6": {
|
|
220
|
+
"id": "kimi-k2.6",
|
|
221
|
+
"name": "Kimi K2.6",
|
|
222
|
+
"family": "kimi-k2",
|
|
223
|
+
"reasoning": true,
|
|
224
|
+
"reasoning_options": [{ "type": "toggle" }],
|
|
225
|
+
"temperature": true,
|
|
226
|
+
"tool_call": true,
|
|
227
|
+
"attachment": true,
|
|
228
|
+
"modalities": {
|
|
229
|
+
"input": [
|
|
230
|
+
"text",
|
|
231
|
+
"image",
|
|
232
|
+
"video"
|
|
233
|
+
],
|
|
234
|
+
"output": ["text"]
|
|
235
|
+
},
|
|
236
|
+
"limit": {
|
|
237
|
+
"context": 262144,
|
|
238
|
+
"output": 262144
|
|
239
|
+
},
|
|
240
|
+
"release_date": "2026-04-21"
|
|
241
|
+
},
|
|
242
|
+
"kimi-k2.7-code": {
|
|
243
|
+
"id": "kimi-k2.7-code",
|
|
244
|
+
"name": "Kimi K2.7 Code",
|
|
245
|
+
"family": "kimi-k2",
|
|
246
|
+
"reasoning": true,
|
|
247
|
+
"reasoning_options": [],
|
|
248
|
+
"temperature": false,
|
|
249
|
+
"tool_call": true,
|
|
250
|
+
"attachment": true,
|
|
251
|
+
"modalities": {
|
|
252
|
+
"input": [
|
|
253
|
+
"text",
|
|
254
|
+
"image",
|
|
255
|
+
"video"
|
|
256
|
+
],
|
|
257
|
+
"output": ["text"]
|
|
258
|
+
},
|
|
259
|
+
"limit": {
|
|
260
|
+
"context": 262144,
|
|
261
|
+
"output": 262144
|
|
262
|
+
},
|
|
263
|
+
"release_date": "2026-06-12"
|
|
264
|
+
},
|
|
265
|
+
"kimi-k3": {
|
|
266
|
+
"id": "kimi-k3",
|
|
267
|
+
"name": "Kimi K3",
|
|
268
|
+
"family": "kimi-k3",
|
|
269
|
+
"reasoning": true,
|
|
270
|
+
"reasoning_options": [{ "type": "toggle" }, {
|
|
271
|
+
"type": "effort",
|
|
272
|
+
"values": [
|
|
273
|
+
"low",
|
|
274
|
+
"high",
|
|
275
|
+
"max"
|
|
276
|
+
]
|
|
277
|
+
}],
|
|
278
|
+
"temperature": false,
|
|
279
|
+
"tool_call": true,
|
|
280
|
+
"attachment": true,
|
|
281
|
+
"modalities": {
|
|
282
|
+
"input": [
|
|
283
|
+
"text",
|
|
284
|
+
"image",
|
|
285
|
+
"video"
|
|
286
|
+
],
|
|
287
|
+
"output": ["text"]
|
|
288
|
+
},
|
|
289
|
+
"limit": {
|
|
290
|
+
"context": 1048576,
|
|
291
|
+
"output": 131072
|
|
292
|
+
},
|
|
293
|
+
"release_date": "2026-07-16"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"kimi-coding-cn": {
|
|
297
|
+
"kimi-for-coding-highspeed": {
|
|
298
|
+
"id": "kimi-for-coding-highspeed",
|
|
299
|
+
"name": "Kimi For Coding HighSpeed",
|
|
300
|
+
"family": "kimi-k2",
|
|
301
|
+
"reasoning": true,
|
|
302
|
+
"reasoning_options": [],
|
|
303
|
+
"temperature": false,
|
|
304
|
+
"tool_call": true,
|
|
305
|
+
"attachment": true,
|
|
306
|
+
"modalities": {
|
|
307
|
+
"input": [
|
|
308
|
+
"text",
|
|
309
|
+
"image",
|
|
310
|
+
"video"
|
|
311
|
+
],
|
|
312
|
+
"output": ["text"]
|
|
313
|
+
},
|
|
314
|
+
"limit": {
|
|
315
|
+
"context": 262144,
|
|
316
|
+
"output": 32768
|
|
317
|
+
},
|
|
318
|
+
"release_date": "2026-06-12"
|
|
319
|
+
},
|
|
320
|
+
"kimi-for-coding": {
|
|
321
|
+
"id": "kimi-for-coding",
|
|
322
|
+
"name": "kimi-for-coding",
|
|
323
|
+
"family": "kimi-k2",
|
|
324
|
+
"reasoning": true,
|
|
325
|
+
"reasoning_options": [{ "type": "toggle" }, {
|
|
326
|
+
"type": "effort",
|
|
327
|
+
"values": [
|
|
328
|
+
"low",
|
|
329
|
+
"high",
|
|
330
|
+
"max"
|
|
331
|
+
]
|
|
332
|
+
}],
|
|
333
|
+
"tool_call": true,
|
|
334
|
+
"attachment": true,
|
|
335
|
+
"modalities": {
|
|
336
|
+
"input": [
|
|
337
|
+
"text",
|
|
338
|
+
"image",
|
|
339
|
+
"video"
|
|
340
|
+
],
|
|
341
|
+
"output": ["text"]
|
|
342
|
+
},
|
|
343
|
+
"limit": {
|
|
344
|
+
"context": 1048576,
|
|
345
|
+
"output": 32768
|
|
346
|
+
},
|
|
347
|
+
"release_date": "2026-09-11"
|
|
348
|
+
},
|
|
349
|
+
"k3-256k": {
|
|
350
|
+
"id": "k3-256k",
|
|
351
|
+
"name": "Kimi K3-256K",
|
|
352
|
+
"family": "kimi-k3",
|
|
353
|
+
"reasoning": true,
|
|
354
|
+
"reasoning_options": [{
|
|
355
|
+
"type": "effort",
|
|
356
|
+
"values": [
|
|
357
|
+
"low",
|
|
358
|
+
"high",
|
|
359
|
+
"max"
|
|
360
|
+
]
|
|
361
|
+
}],
|
|
362
|
+
"temperature": false,
|
|
363
|
+
"tool_call": true,
|
|
364
|
+
"attachment": true,
|
|
365
|
+
"modalities": {
|
|
366
|
+
"input": ["text", "image"],
|
|
367
|
+
"output": ["text"]
|
|
368
|
+
},
|
|
369
|
+
"limit": {
|
|
370
|
+
"context": 262144,
|
|
371
|
+
"output": 131072
|
|
372
|
+
},
|
|
373
|
+
"release_date": "2026-07-16"
|
|
374
|
+
},
|
|
375
|
+
"k3": {
|
|
376
|
+
"id": "k3",
|
|
377
|
+
"name": "Kimi K3",
|
|
378
|
+
"family": "kimi-k3",
|
|
379
|
+
"reasoning": true,
|
|
380
|
+
"reasoning_options": [{ "type": "toggle" }, {
|
|
381
|
+
"type": "effort",
|
|
382
|
+
"values": [
|
|
383
|
+
"low",
|
|
384
|
+
"high",
|
|
385
|
+
"max"
|
|
386
|
+
]
|
|
387
|
+
}],
|
|
388
|
+
"temperature": false,
|
|
389
|
+
"tool_call": true,
|
|
390
|
+
"attachment": true,
|
|
391
|
+
"modalities": {
|
|
392
|
+
"input": [
|
|
393
|
+
"text",
|
|
394
|
+
"image",
|
|
395
|
+
"video"
|
|
396
|
+
],
|
|
397
|
+
"output": ["text"]
|
|
398
|
+
},
|
|
399
|
+
"limit": {
|
|
400
|
+
"context": 1048576,
|
|
401
|
+
"output": 131072
|
|
402
|
+
},
|
|
403
|
+
"release_date": "2026-07-16"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"kimi-coding": {
|
|
407
|
+
"kimi-for-coding-highspeed": {
|
|
408
|
+
"id": "kimi-for-coding-highspeed",
|
|
409
|
+
"name": "Kimi For Coding HighSpeed",
|
|
410
|
+
"family": "kimi-k2",
|
|
411
|
+
"reasoning": true,
|
|
412
|
+
"reasoning_options": [],
|
|
413
|
+
"temperature": false,
|
|
414
|
+
"tool_call": true,
|
|
415
|
+
"attachment": true,
|
|
416
|
+
"modalities": {
|
|
417
|
+
"input": [
|
|
418
|
+
"text",
|
|
419
|
+
"image",
|
|
420
|
+
"video"
|
|
421
|
+
],
|
|
422
|
+
"output": ["text"]
|
|
423
|
+
},
|
|
424
|
+
"limit": {
|
|
425
|
+
"context": 262144,
|
|
426
|
+
"output": 32768
|
|
427
|
+
},
|
|
428
|
+
"release_date": "2026-06-12"
|
|
429
|
+
},
|
|
430
|
+
"kimi-for-coding": {
|
|
431
|
+
"id": "kimi-for-coding",
|
|
432
|
+
"name": "kimi-for-coding",
|
|
433
|
+
"family": "kimi-k2",
|
|
434
|
+
"reasoning": true,
|
|
435
|
+
"reasoning_options": [{ "type": "toggle" }, {
|
|
436
|
+
"type": "effort",
|
|
437
|
+
"values": [
|
|
438
|
+
"low",
|
|
439
|
+
"high",
|
|
440
|
+
"max"
|
|
441
|
+
]
|
|
442
|
+
}],
|
|
443
|
+
"tool_call": true,
|
|
444
|
+
"attachment": true,
|
|
445
|
+
"modalities": {
|
|
446
|
+
"input": [
|
|
447
|
+
"text",
|
|
448
|
+
"image",
|
|
449
|
+
"video"
|
|
450
|
+
],
|
|
451
|
+
"output": ["text"]
|
|
452
|
+
},
|
|
453
|
+
"limit": {
|
|
454
|
+
"context": 1048576,
|
|
455
|
+
"output": 32768
|
|
456
|
+
},
|
|
457
|
+
"release_date": "2026-09-11"
|
|
458
|
+
},
|
|
459
|
+
"k3-256k": {
|
|
460
|
+
"id": "k3-256k",
|
|
461
|
+
"name": "Kimi K3-256K",
|
|
462
|
+
"family": "kimi-k3",
|
|
463
|
+
"reasoning": true,
|
|
464
|
+
"reasoning_options": [{
|
|
465
|
+
"type": "effort",
|
|
466
|
+
"values": [
|
|
467
|
+
"low",
|
|
468
|
+
"high",
|
|
469
|
+
"max"
|
|
470
|
+
]
|
|
471
|
+
}],
|
|
472
|
+
"temperature": false,
|
|
473
|
+
"tool_call": true,
|
|
474
|
+
"attachment": true,
|
|
475
|
+
"modalities": {
|
|
476
|
+
"input": ["text", "image"],
|
|
477
|
+
"output": ["text"]
|
|
478
|
+
},
|
|
479
|
+
"limit": {
|
|
480
|
+
"context": 262144,
|
|
481
|
+
"output": 131072
|
|
482
|
+
},
|
|
483
|
+
"release_date": "2026-07-16"
|
|
484
|
+
},
|
|
485
|
+
"k3": {
|
|
486
|
+
"id": "k3",
|
|
487
|
+
"name": "Kimi K3",
|
|
488
|
+
"family": "kimi-k3",
|
|
489
|
+
"reasoning": true,
|
|
490
|
+
"reasoning_options": [{ "type": "toggle" }, {
|
|
491
|
+
"type": "effort",
|
|
492
|
+
"values": [
|
|
493
|
+
"low",
|
|
494
|
+
"high",
|
|
495
|
+
"max"
|
|
496
|
+
]
|
|
497
|
+
}],
|
|
498
|
+
"temperature": false,
|
|
499
|
+
"tool_call": true,
|
|
500
|
+
"attachment": true,
|
|
501
|
+
"modalities": {
|
|
502
|
+
"input": [
|
|
503
|
+
"text",
|
|
504
|
+
"image",
|
|
505
|
+
"video"
|
|
506
|
+
],
|
|
507
|
+
"output": ["text"]
|
|
508
|
+
},
|
|
509
|
+
"limit": {
|
|
510
|
+
"context": 1048576,
|
|
511
|
+
"output": 131072
|
|
512
|
+
},
|
|
513
|
+
"release_date": "2026-07-16"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
snapshotAt: Date.parse("2026-09-17")
|
|
518
|
+
};
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region src/routing.ts
|
|
521
|
+
/** Maps only declared official roots; protocol implementations own the remaining resource URI. */
|
|
522
|
+
function connectionConfig(endpoint, protocolId, config, aliases = []) {
|
|
523
|
+
const defaults = Object.values(endpoint.capabilities).find((one) => one.protocolIds.includes(protocolId))?.protocolDefaults?.[protocolId] ?? {};
|
|
524
|
+
const configured = config.baseUrl;
|
|
525
|
+
const canonical = [
|
|
526
|
+
endpoint.defaults?.baseUrl,
|
|
527
|
+
...Object.values(endpoint.capabilities).flatMap((one) => Object.values(one.protocolDefaults ?? {}).map((value) => value.baseUrl)),
|
|
528
|
+
...aliases
|
|
529
|
+
].filter((value) => typeof value === "string");
|
|
530
|
+
const isOfficial = configured === void 0 || typeof configured === "string" && canonical.some((value) => value.replace(/\/+$/, "") === configured.replace(/\/+$/, ""));
|
|
531
|
+
const selected = defaults.baseUrl ?? endpoint.defaults?.baseUrl;
|
|
532
|
+
return {
|
|
533
|
+
...endpoint.defaults,
|
|
534
|
+
...defaults,
|
|
535
|
+
...config,
|
|
536
|
+
...isOfficial && selected !== void 0 ? { baseUrl: selected } : {}
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
//#endregion
|
|
540
|
+
//#region src/type.ts
|
|
541
|
+
/** Stable supplier registration identity. */
|
|
542
|
+
const TYPE = "kimi";
|
|
543
|
+
const endpoints = [
|
|
544
|
+
{
|
|
545
|
+
id: "moonshot-cn",
|
|
546
|
+
label: "月之暗面 Kimi · 国内",
|
|
547
|
+
capabilities: { chat: {
|
|
548
|
+
protocolIds: [
|
|
549
|
+
"openai",
|
|
550
|
+
"openai-responses",
|
|
551
|
+
"anthropic"
|
|
552
|
+
],
|
|
553
|
+
defaultProtocolId: "openai-responses",
|
|
554
|
+
protocolDefaults: { anthropic: { baseUrl: "https://api.moonshot.cn/anthropic/v1" } },
|
|
555
|
+
listingVia: {
|
|
556
|
+
endpointId: "moonshot-cn",
|
|
557
|
+
protocolId: "openai"
|
|
558
|
+
}
|
|
559
|
+
} },
|
|
560
|
+
defaults: { baseUrl: "https://api.moonshot.cn/v1" },
|
|
561
|
+
credentialGroup: "kimi"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
id: "moonshot",
|
|
565
|
+
label: "月之暗面 Kimi · 国际",
|
|
566
|
+
capabilities: { chat: {
|
|
567
|
+
protocolIds: [
|
|
568
|
+
"openai",
|
|
569
|
+
"openai-responses",
|
|
570
|
+
"anthropic"
|
|
571
|
+
],
|
|
572
|
+
defaultProtocolId: "openai",
|
|
573
|
+
protocolDefaults: { anthropic: { baseUrl: "https://api.moonshot.ai/anthropic/v1" } },
|
|
574
|
+
listingVia: {
|
|
575
|
+
endpointId: "moonshot",
|
|
576
|
+
protocolId: "openai"
|
|
577
|
+
}
|
|
578
|
+
} },
|
|
579
|
+
defaults: { baseUrl: "https://api.moonshot.ai/v1" },
|
|
580
|
+
credentialGroup: "kimi"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
id: "kimi-coding-cn",
|
|
584
|
+
label: "Kimi For Coding · 国内",
|
|
585
|
+
capabilities: { chat: {
|
|
586
|
+
protocolIds: [
|
|
587
|
+
"openai",
|
|
588
|
+
"openai-responses",
|
|
589
|
+
"anthropic"
|
|
590
|
+
],
|
|
591
|
+
defaultProtocolId: "openai",
|
|
592
|
+
protocolDefaults: { anthropic: { baseUrl: "https://api.kimi.com/coding/v1" } },
|
|
593
|
+
listingVia: {
|
|
594
|
+
endpointId: "kimi-coding-cn",
|
|
595
|
+
protocolId: "openai"
|
|
596
|
+
}
|
|
597
|
+
} },
|
|
598
|
+
defaults: { baseUrl: "https://api.kimi.com/coding/v1" },
|
|
599
|
+
credentialGroup: "kimi"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
id: "kimi-coding",
|
|
603
|
+
label: "Kimi For Coding · 国际",
|
|
604
|
+
capabilities: { chat: {
|
|
605
|
+
protocolIds: [
|
|
606
|
+
"openai",
|
|
607
|
+
"openai-responses",
|
|
608
|
+
"anthropic"
|
|
609
|
+
],
|
|
610
|
+
defaultProtocolId: "openai",
|
|
611
|
+
protocolDefaults: { anthropic: { baseUrl: "https://api.kimi.ai/coding/v1" } },
|
|
612
|
+
listingVia: {
|
|
613
|
+
endpointId: "kimi-coding",
|
|
614
|
+
protocolId: "openai"
|
|
615
|
+
}
|
|
616
|
+
} },
|
|
617
|
+
defaults: { baseUrl: "https://api.kimi.ai/coding/v1" },
|
|
618
|
+
credentialGroup: "kimi"
|
|
619
|
+
}
|
|
620
|
+
];
|
|
621
|
+
const protocolOptions = {
|
|
622
|
+
openai: {
|
|
623
|
+
thinkingField: true,
|
|
624
|
+
reasoningReplay: "reasoning-content"
|
|
625
|
+
},
|
|
626
|
+
"openai-responses": {
|
|
627
|
+
toolChoiceNone: false,
|
|
628
|
+
reasoningReplay: "reasoning-content",
|
|
629
|
+
encryptedReasoningInclude: false,
|
|
630
|
+
effortCache: false,
|
|
631
|
+
promptCacheKey: true
|
|
632
|
+
},
|
|
633
|
+
anthropic: {
|
|
634
|
+
reasoningReplay: "signed-thinking",
|
|
635
|
+
effortCache: false,
|
|
636
|
+
cacheBreakpoints: false,
|
|
637
|
+
thinkingEffort: true,
|
|
638
|
+
thinkingBeta: false,
|
|
639
|
+
thinkingMode: "omit"
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
/** Builds this supplier's declaration without network activity or protocol imports. */
|
|
643
|
+
function kimiProviderType(support) {
|
|
644
|
+
return {
|
|
645
|
+
type: TYPE,
|
|
646
|
+
label: "Kimi",
|
|
647
|
+
fields: [{
|
|
648
|
+
key: "apiKey",
|
|
649
|
+
kind: "secret",
|
|
650
|
+
label: "API Key",
|
|
651
|
+
required: true
|
|
652
|
+
}],
|
|
653
|
+
endpoints,
|
|
654
|
+
catalog: support ? {
|
|
655
|
+
...catalog,
|
|
656
|
+
source: support.catalogueSource("https://models.dev/api.json", "models")
|
|
657
|
+
} : catalog,
|
|
658
|
+
describeModel({ model }) {
|
|
659
|
+
return model === "kimi-k3" ? {
|
|
660
|
+
id: model,
|
|
661
|
+
outputLimit: {
|
|
662
|
+
ordinary: 131072,
|
|
663
|
+
thinking: 131072
|
|
664
|
+
}
|
|
665
|
+
} : void 0;
|
|
666
|
+
},
|
|
667
|
+
prepareConnection(input) {
|
|
668
|
+
const endpoint = endpoints.find((one) => one.id === input.endpointId);
|
|
669
|
+
if (!endpoint || !Object.values(endpoint.capabilities).some((one) => one.protocolIds.includes(input.protocolId))) throw new Error("unsupported supplier endpoint or protocol");
|
|
670
|
+
return {
|
|
671
|
+
config: connectionConfig(endpoint, input.protocolId, input.config),
|
|
672
|
+
options: protocolOptions[input.protocolId] ?? {}
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
//#endregion
|
|
678
|
+
//#region src/index.ts
|
|
679
|
+
/** Suppliers contribute no tools. */
|
|
680
|
+
const TOOL_NAMES = [];
|
|
681
|
+
const plugin = {
|
|
682
|
+
name: "@eum-agent/llm-provider-kimi",
|
|
683
|
+
requires: ["model-catalogue-sources"],
|
|
684
|
+
apply(ctx) {
|
|
685
|
+
const support = ctx.services.get("model-catalogue-sources");
|
|
686
|
+
ctx.modelProviders.register(kimiProviderType(support));
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
//#endregion
|
|
690
|
+
export { TOOL_NAMES, plugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eum-agent/llm-provider-kimi",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
"displayName": {
|
|
4
|
+
"en-US": "Kimi Model Connection",
|
|
5
|
+
"zh-CN": "模型接入 · Kimi"
|
|
6
|
+
},
|
|
7
|
+
"version": "1.1.0",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"description": "Kimi model provider using the OpenAI API protocol",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"assets"
|
|
19
|
+
],
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@eum-agent/plugin": "1.1.0"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"zod": "^4.4.3"
|
|
25
|
+
},
|
|
26
|
+
"yaoguang": {
|
|
27
|
+
"description": {
|
|
28
|
+
"en-US": "Kimi model provider using the OpenAI API protocol",
|
|
29
|
+
"zh-CN": "通过 OpenAI API 协议接入 Kimi 模型"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@eum-agent/llm-management": "1.1.0"
|
|
33
|
+
},
|
|
34
|
+
"kind": "extension"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsdown",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"typecheck": "tsc --noEmit"
|
|
40
|
+
}
|
|
6
41
|
}
|
package/README.md
DELETED