feat: add public assets to Docker image and update Dify API config with new talent service agent

This commit is contained in:
root
2026-05-11 17:47:49 +08:00
parent 2336a2bd30
commit d4105fc04d
5 changed files with 33 additions and 8 deletions
+29 -2
View File
@@ -115,8 +115,8 @@ async function main() {
status: "active",
isFeatured: true,
featuredOrder: 1,
difyApiUrl: "https://api.dify.ai/v1",
difyApiKey: "app-demo-key-123456",
difyApiUrl: "http://host.docker.internal/v1",
difyApiKey: "app-lbe2lglt7taGtZk0dG7pAhbx",
},
}),
prisma.agent.upsert({
@@ -218,6 +218,33 @@ async function main() {
status: "active",
},
}),
prisma.agent.upsert({
where: { slug: "talent-service" },
update: {},
create: {
name: "人才服务智能体",
slug: "talent-service",
description: "提供人才政策查询、招聘信息匹配、职业规划咨询、人才补贴申请等一站式人才服务。",
icon: "👥",
categoryId: categories[6].id,
features: "人才政策查询, 招聘信息匹配, 职业规划, 人才补贴申请",
hotQuestions: JSON.stringify([
"淮安市有哪些人才引进政策?",
"如何申请人才补贴?",
"高层次人才认定标准是什么?",
"人才公寓如何申请?",
]),
quickQuestions: JSON.stringify([
"人才政策查询",
"人才补贴申请",
"招聘信息",
]),
usageCount: 200,
status: "active",
isFeatured: true,
featuredOrder: 4,
},
}),
])
console.log("Created agents:", agents.map(a => a.name).join(", "))