Skip to content

Commit e46fb51

Browse files
committed
Merge branch 'feat/model' of https://github.com/betterdancing/tiny-engine into feat/model
2 parents 54cfd47 + c922fbd commit e46fb51

11 files changed

Lines changed: 1017 additions & 162 deletions

File tree

docs/advanced-features/new-ai-plugin-usage.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,14 @@ MCP工具管理面板允许用户:
6161
[META_APP.Robot]: {
6262
options: {
6363
customCompatibleAIModels: [
64-
{ label: 'SiliconFlow:DeepSeek-V3', value: 'deepseek-ai/DeepSeek-V3', manufacturer: 'siliconflow' },
65-
{ label: 'Qwen:qwen-max', value: 'qwen-max', manufacturer: 'qwen' },
64+
{
65+
label: 'DeepSeek',
66+
value: 'https://api.deepseek.com/v1',
67+
model: [
68+
{ label: 'deepseek-chat', value: 'deepseek-chat', maxTokens: 64000 },
69+
{ label: 'deepseek-reasoner', value: 'deepseek-reasoner', maxTokens: 64000 }
70+
]
71+
}
6672
]
6773
}
6874
},

packages/canvas/render/src/data-function/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const generateFn = (innerFn, context?) => {
166166
}
167167

168168
// 这里注意如果innerFn返回的是一个promise则需要捕获异常,重新返回默认一条空数据
169-
if (result.then && typeof result.then === 'function') {
169+
if (result?.then && typeof result.then === 'function') {
170170
result = new Promise((resolve) => {
171171
result.then(resolve).catch((error) => {
172172
globalNotify({

packages/design-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@babel/generator": "~7.23.2",
4343
"@babel/parser": "~7.23.2",
4444
"@babel/traverse": "~7.23.2",
45+
"@opentiny/tiny-schema-renderer": "1.0.0-beta.6",
4546
"@opentiny/tiny-engine-canvas": "workspace:*",
4647
"@opentiny/tiny-engine-common": "workspace:*",
4748
"@opentiny/tiny-engine-configurator": "workspace:*",

packages/plugins/robot/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"@opentiny/tiny-robot": "0.3.0-rc.0",
3030
"@opentiny/tiny-robot-kit": "0.3.0-rc.0",
3131
"@opentiny/tiny-robot-svgs": "0.3.0-rc.0",
32+
"@opentiny/tiny-schema-renderer": "1.0.0-beta.6",
33+
"fast-json-patch": "~3.1.1",
3234
"dompurify": "^3.0.1",
3335
"highlight.js": "^11.11.1",
3436
"markdown-it": "^14.1.0"

0 commit comments

Comments
 (0)