Skip to content

Commit 1375e7c

Browse files
committed
支持探索版和K1模型,修复图像解析能力
1 parent 1dd7f89 commit 1375e7c

File tree

8 files changed

+2017
-235
lines changed

8 files changed

+2017
-235
lines changed

README.md

+26-3
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,14 @@ Authorization: Bearer [refresh_token]
281281
请求数据:
282282
```json
283283
{
284-
// model随意填写,如果不希望输出检索过程模型名称请包含silent_search
284+
// 模型名称
285+
// kimi:默认模型
286+
// kimi-search:联网检索模型
287+
// kimi-research:探索版模型
288+
// kimi-k1:K1模型
289+
// kimi-math:数学模型
290+
// kimi-silent:不输出检索过程模型
291+
// search/research/k1/math/silent:可自由组合使用
285292
// 如果使用kimi+智能体,model请填写智能体ID,就是浏览器地址栏上尾部的一串英文+数字20个字符的ID
286293
"model": "kimi",
287294
// 目前多轮对话基于消息合并实现,某些场景可能导致能力下降且受单轮最大Token数限制
@@ -341,7 +348,15 @@ Authorization: Bearer [refresh_token]
341348
请求数据:
342349
```json
343350
{
344-
// 模型名称随意填写,如果不希望输出检索过程模型名称请包含silent_search
351+
// 模型名称
352+
// kimi:默认模型
353+
// kimi-search:联网检索模型
354+
// kimi-research:探索版模型
355+
// kimi-k1:K1模型
356+
// kimi-math:数学模型
357+
// kimi-silent:不输出检索过程模型
358+
// search/research/k1/math/silent:可自由组合使用
359+
// 如果使用kimi+智能体,model请填写智能体ID,就是浏览器地址栏上尾部的一串英文+数字20个字符的ID
345360
"model": "kimi",
346361
"messages": [
347362
{
@@ -407,7 +422,15 @@ Authorization: Bearer [refresh_token]
407422
请求数据:
408423
```json
409424
{
410-
// 模型名称随意填写,如果不希望输出检索过程模型名称请包含silent_search
425+
// 模型名称
426+
// kimi:默认模型
427+
// kimi-search:联网检索模型
428+
// kimi-research:探索版模型
429+
// kimi-k1:K1模型
430+
// kimi-math:数学模型
431+
// kimi-silent:不输出检索过程模型
432+
// search/research/k1/math/silent:可自由组合使用
433+
// 如果使用kimi+智能体,model请填写智能体ID,就是浏览器地址栏上尾部的一串英文+数字20个字符的ID
411434
"model": "kimi",
412435
"messages": [
413436
{

README_EN.md

+47-23
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,15 @@ Authorization: Bearer [refresh_token]
261261
Request data:
262262
```json
263263
{
264-
// Fill in the model name as you like. If you do not want to output the retrieval process model name, please include silent_search.
264+
// Model name
265+
// kimi: default model
266+
// kimi-search: online search model
267+
// kimi-research: exploration version model
268+
// kimi-k1: K1 model
269+
// kimi-math: math model
270+
// kimi-silent: model without search process output
271+
// search/research/k1/math/silent: can be freely combined
272+
// If using kimi+agent, fill in the agent ID for model, which is the 20-character ID of letters and numbers at the end of the browser address bar
265273
"model": "kimi",
266274
"messages": [
267275
{
@@ -317,27 +325,35 @@ Authorization: Bearer [refresh_token]
317325
Request data:
318326
```json
319327
{
320-
// Fill in the model name as you like. If you do not want to output the retrieval process model name, please include silent_search.
321-
"model": "kimi",
322-
"messages": [
323-
{
324-
"role": "user",
325-
"content": [
326-
{
327-
"type": "file",
328-
"file_url": {
329-
"url": "https://mj101-1317487292.cos.ap-shanghai.myqcloud.com/ai/test.pdf"
330-
}
331-
},
332-
{
333-
"type": "text",
334-
"text": "What does the document say?"
335-
}
336-
]
337-
}
338-
],
339-
// It is recommended to turn off online search to prevent interference in interpreting results.
340-
"use_search": false
328+
// Model name
329+
// kimi: default model
330+
// kimi-search: online search model
331+
// kimi-research: exploration version model
332+
// kimi-k1: K1 model
333+
// kimi-math: math model
334+
// kimi-silent: model without search process output
335+
// search/research/k1/math/silent: can be freely combined
336+
// If using kimi+agent, fill in the agent ID for model, which is the 20-character ID of letters and numbers at the end of the browser address bar
337+
"model": "kimi",
338+
"messages": [
339+
{
340+
"role": "user",
341+
"content": [
342+
{
343+
"type": "file",
344+
"file_url": {
345+
"url": "https://mj101-1317487292.cos.ap-shanghai.myqcloud.com/ai/test.pdf"
346+
}
347+
},
348+
{
349+
"type": "text",
350+
"text": "What does the document say?"
351+
}
352+
]
353+
}
354+
],
355+
// It is recommended to turn off online search to prevent interference in interpreting results.
356+
"use_search": false
341357
}
342358
```
343359

@@ -383,7 +399,15 @@ Authorization: Bearer [refresh_token]
383399
Request data:
384400
```json
385401
{
386-
// Fill in the model name as you like. If you do not want to output the retrieval process model name, please include silent_search.
402+
// Model name
403+
// kimi: default model
404+
// kimi-search: online search model
405+
// kimi-research: exploration version model
406+
// kimi-k1: K1 model
407+
// kimi-math: math model
408+
// kimi-silent: model without search process output
409+
// search/research/k1/math/silent: can be freely combined
410+
// If using kimi+agent, fill in the agent ID for model, which is the 20-character ID of letters and numbers at the end of the browser address bar
387411
"model": "kimi",
388412
"messages": [
389413
{

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kimi-free-api",
3-
"version": "0.0.34",
3+
"version": "0.0.36",
44
"description": "Kimi Free API Server",
55
"type": "module",
66
"main": "dist/index.js",
@@ -13,8 +13,8 @@
1313
"dist/"
1414
],
1515
"scripts": {
16-
"dev": "tsup src/index.ts --format cjs,esm --sourcemap --dts --publicDir public --watch --onSuccess \"node dist/index.js\"",
17-
"start": "node dist/index.js",
16+
"dev": "tsup src/index.ts --format cjs,esm --sourcemap --dts --publicDir public --watch --onSuccess \"node --enable-source-maps --no-node-snapshot dist/index.js\"",
17+
"start": "node --enable-source-maps --no-node-snapshot dist/index.js",
1818
"build": "tsup src/index.ts --format cjs,esm --sourcemap --dts --clean --publicDir public"
1919
},
2020
"author": "Vinlic",

src/api/consts/exceptions.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default {
55
API_TOKEN_EXPIRES: [-2002, 'Token已失效'],
66
API_FILE_URL_INVALID: [-2003, '远程文件URL非法'],
77
API_FILE_EXECEEDS_SIZE: [-2004, '远程文件超出大小'],
8-
API_CHAT_STREAM_PUSHING: [-2005, '已有对话流正在输出']
8+
API_CHAT_STREAM_PUSHING: [-2005, '已有对话流正在输出'],
9+
API_RESEARCH_EXCEEDS_LIMIT: [-2006, '探索版使用量已达到上限']
910
}

0 commit comments

Comments
 (0)