Skip to content

Commit d8832ee

Browse files
committed
chore: 解决pe cr问题
1 parent 9208e66 commit d8832ee

File tree

4 files changed

+10
-30
lines changed
  • common/autoinstallers/plugins/rush-plugins/@coze-arch/rush-publish-plugin/@coze-arch/rush-publish-plugin
  • frontend/packages/cozeloop

4 files changed

+10
-30
lines changed

common/autoinstallers/plugins/rush-plugins/@coze-arch/rush-publish-plugin/@coze-arch/rush-publish-plugin/command-line.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"required": false
3535
},
3636
{
37-
"parameterKind": "stringList",
37+
"parameterKind": "string",
3838
"shortName": "-t",
3939
"longName": "--to",
4040
"description": "Publish specified packages and their downstream dependencies",
@@ -43,7 +43,7 @@
4343
"required": false
4444
},
4545
{
46-
"parameterKind": "stringList",
46+
"parameterKind": "string",
4747
"shortName": "-f",
4848
"longName": "--from",
4949
"description": "Publish specified packages and their upstream/downstream dependencies",
@@ -52,7 +52,7 @@
5252
"required": false
5353
},
5454
{
55-
"parameterKind": "stringList",
55+
"parameterKind": "string",
5656
"shortName": "-o",
5757
"longName": "--only",
5858
"description": "Only publish specified packages",
@@ -135,14 +135,6 @@
135135
"shortName": "-c",
136136
"description": "Git commit hash",
137137
"associatedCommands": ["release"]
138-
},
139-
{
140-
"parameterKind": "string",
141-
"argumentName": "REGISTRY",
142-
"longName": "--registry",
143-
"shortName": "-r",
144-
"description": "Registry",
145-
"associatedCommands": ["release"]
146138
}
147139
]
148140
}

frontend/packages/cozeloop/prompt-components-v2/src/utils/prompt.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ export const getPlaceholderErrorContent = (
6666
export const splitMultimodalContent = (content: string) => {
6767
const result: Array<{ type: ContentType; text: string }> = [];
6868

69-
// 使用正则表达式匹配 <multimodal-variable>xxx</multimodal-variable> 标签
70-
const regex = /<multimodal-variable>(.*?)<\/multimodal-variable>/g;
69+
const regex = /<multimodal-variable>([^<]*)<\/multimodal-variable>/g;
7170
let lastIndex = 0;
7271
let match: RegExpExecArray | null;
7372

frontend/packages/cozeloop/prompt-pages/src/pages/develop/index.tsx

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ import {
1515
useOpenWindow,
1616
useSpace,
1717
} from '@cozeloop/biz-hooks-adapter';
18-
import {
19-
BenefitBanner,
20-
BenefitBannerScene,
21-
uploadFile,
22-
} from '@cozeloop/biz-components-adapter';
18+
import { uploadFile } from '@cozeloop/biz-components-adapter';
2319
import { type Prompt } from '@cozeloop/api-schema/prompt';
2420

2521
import { TraceTab } from '@/components/trace-tabs';
@@ -58,11 +54,7 @@ export default function PromptDevelopPage() {
5854
sendEvent={sendEvent}
5955
multiModalConfig={{
6056
imageSupported: true,
61-
intranetUrlValidator: url =>
62-
url.includes('localhost') ||
63-
url.includes('byted.org') ||
64-
url.includes('bytedance.net') ||
65-
url.includes('byteoversea.net'),
57+
intranetUrlValidator: url => url.includes('localhost'),
6658
}}
6759
canDiffEdit={false}
6860
debugAreaConfig={{
@@ -81,13 +73,6 @@ export default function PromptDevelopPage() {
8173
onSuccess: ({ prompt }) => openBlank(`pe/prompts/${prompt?.id}`),
8274
},
8375
}}
84-
renerTipBanner={() => (
85-
<BenefitBanner
86-
closable={false}
87-
className="mb-2 mr-6"
88-
scene={BenefitBannerScene.PromptDetail}
89-
/>
90-
)}
9176
onSubmitSuccess={() => {
9277
showSubmitSuccess(
9378
() => navigate('observation/traces'),

frontend/packages/cozeloop/prompt-pages/src/pages/playground/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export default function PromptPlaygroundPage() {
4343
onClick: ({ debugId }) => traceLogPannel.open(debugId as string),
4444
},
4545
}}
46+
multiModalConfig={{
47+
imageSupported: true,
48+
intranetUrlValidator: url => url.includes('localhost'),
49+
}}
4650
/>
4751
<TraceTab
4852
displayType="drawer"

0 commit comments

Comments
 (0)