Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/scripts/check-file-size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ EXCLUDE_PATTERNS=(
'common/changes/**'
'apps/fornax/**',
"packages/arch/semi-theme-hand01"
'frontend/packages/arch/resources/studio-i18n-resource/src/locale-data.d.ts'
)

for pattern in "${EXCLUDE_PATTERNS[@]}"; do
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,18 @@ common/temp
.rush
.eslintcache

# Python virtual environment
venv/
.venv/
*.venv


backend/conf/model/*.yaml
values-dev.yaml
**/conf/model_ark_doubao-seed-1.6.yaml

*.tsbuildinfo

# Generated i18n locale data files
frontend/packages/arch/resources/studio-i18n-resource/src/locale-data.d.ts

135 changes: 135 additions & 0 deletions backend/api/handler/coze/workflow_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions backend/api/handler/coze/workflow_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3156,12 +3156,13 @@ func TestLLMWithSkills(t *testing.T) {
assert.Equal(t, "你是一个旅游推荐专家,通过用户提出的问题,推荐用户具体城市的旅游景点", message.Content)
}
if message.Role == schema.User {
assert.Contains(t, message.Content, "天安门广场 ‌:中国政治文化中心,见证了近现代重大历史事件‌", "八达岭长城 ‌:明代长城的精华段,被誉为“不到长城非好汉")
assert.Contains(t, message.Content, "天安门广场 ‌:中国政治文化中心,见证了近现代重大历史事件‌")
assert.Contains(t, message.Content, "八达岭长城 ‌:明代长城的精华段,被誉为\"不到长城非好汉\"")
}
}
return &schema.Message{
Role: schema.Assistant,
Content: `八达岭长城 ‌:明代长城的精华段,被誉为不到长城非好汉‌`,
Content: `八达岭长城 ‌:明代长城的精华段,被誉为"不到长城非好汉‌`,
}, nil
}
return nil, fmt.Errorf("unexpected index: %d", index)
Expand All @@ -3178,7 +3179,7 @@ func TestLLMWithSkills(t *testing.T) {
// r.knowledge.EXPECT().Retrieve(gomock.Any(), gomock.Any()).Return(&knowledge.RetrieveResponse{
// RetrieveSlices: []*knowledge.RetrieveSlice{
// {Slice: &knowledge.Slice{DocumentID: 1, Output: "天安门广场 ‌:中国政治文化中心,见证了近现代重大历史事件‌"}, Score: 0.9},
// {Slice: &knowledge.Slice{DocumentID: 2, Output: "八达岭长城 ‌:明代长城的精华段,被誉为不到长城非好汉"}, Score: 0.8},
// {Slice: &knowledge.Slice{DocumentID: 2, Output: "八达岭长城 ‌:明代长城的精华段,被誉为"不到长城非好汉"}, Score: 0.8},
// },
// }, nil).AnyTimes()

Expand All @@ -3189,7 +3190,7 @@ func TestLLMWithSkills(t *testing.T) {
// })
// e := r.getProcess(id, exeID)
// e.assertSuccess()
// assert.Equal(t, `{"output":"八达岭长城 ‌:明代长城的精华段,被誉为不到长城非好汉‌"}`, e.output)
// assert.Equal(t, `{"output":"八达岭长城 ‌:明代长城的精华段,被誉为"不到长城非好汉‌"}`, e.output)
// })
})
}
Expand Down
Loading