Skip to content

Commit

Permalink
feat: 修改文档
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan committed Mar 3, 2025
1 parent b73d6f8 commit 766aeb1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions miniprogram/tcb-agent-ui/miniprogram/app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"pages": [
"pages/chatBot/chatBot",
"pages/index/index"
"pages/index/index",
"pages/chatBot/chatBot"
],
"window": {
"navigationBarBackgroundColor": "#ffffff",
Expand Down
4 changes: 2 additions & 2 deletions miniprogram/tcb-agent-ui/miniprogram/pages/chatBot/chatBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Page({
data: {
agentConfig: {
type: "bot", // 值为'bot'或'model'。当type='bot'时,botId必填;当type='model'时,modelName和model必填
botId: "bot-db3cab4a", // agent id
botId: "bot-e7d1e736", // agent id
modelName: "deepseek", // 大模型服务商 //
model: "deepseek-v3", // 具体的模型版本 //
logo: "https://docs.cloudbase.net/img/logo.svg", // 图标(只在model模式下生效)
welcomeMessage: "欢迎语!", // 欢迎语(只在model模式下生效)
// allowWebSearch: true, // 允许界面呈现联网配置开关
allowWebSearch: true, // 允许界面呈现联网配置开关
},
},

Expand Down
6 changes: 4 additions & 2 deletions miniprogram/tcb-agent-ui/miniprogram/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ Page({
modelName: "",
model: "",
logo: "",
welcomeMessage: ""
welcomeMessage: "",
allowWebSearch: true,
}
}`,
modelConfig1: `data: {
Expand Down Expand Up @@ -59,7 +60,8 @@ Page({
{ name: 'model', type: 'string', desc: "具体使用的模型,当 type = 'model' 时,必填。与 modelName 组合使用,可选的组合 [{modelName:'hunyuan-open',model:'hunyuan-lite'},{modelName:'hunyuan-exp',model:'hunyuan-lite'},{modelName:'deepseek',model:'deepseek-r1'},{modelName:'deepseek',model:'deepseek-v3'},{modelName:'hunyuan-open',model:'hunyuan-vision'}]" },
{ name: 'logo', type: 'string', desc: "页面 logo,当 type = 'model' 时,选填" },
{ name: 'welcomeMessage', type: 'string', desc: "欢迎语,当 type = 'model' 时,选填" },
{name: 'allowWebSearch', type: 'boolean', desc: "界面是否展示联网搜索开关 选填"}
{name: 'allowWebSearch', type: 'boolean', desc: "界面是否展示联网搜索开关 选填"},
{name: 'showBotAvatar', type: 'boolean', desc: "界面是否展示左侧头像"}
],
guide: [`{
"usingComponents": {
Expand Down
2 changes: 1 addition & 1 deletion miniprogram/tcb-agent-ui/project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
"include": []
},
"appid": "wx401b4f0b10b9f661"
}
}

0 comments on commit 766aeb1

Please sign in to comment.