Skip to content

Commit

Permalink
v0.3.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Jun 24, 2023
1 parent f5b63ba commit d1db431
Show file tree
Hide file tree
Showing 13 changed files with 131 additions and 654 deletions.
1 change: 1 addition & 0 deletions examples/combo/Earth_1687585065120.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Earth",
"displayName": "Earth",
"version": "0.3.6.2",
"version": "0.3.6.3",
"description": "AGIUI for Browser Extension",
"license": "MIT",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions src/components/ChatbotMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,9 @@ class Main extends React.Component<{
if (p.role == 'user' && prompt['context']) {
p.content = p.content.replaceAll("${context}", prompt['context'])
}
if (p.role == 'system' && prompt['context']) {
p.content = p.content.replaceAll("${context}", prompt['context'])
}
return p
})
} else {
Expand Down Expand Up @@ -1581,6 +1584,7 @@ class Main extends React.Component<{
// role 给调试用
if ([
'prompt',
'promptCustom',
'role',
].includes(promptJson.type)) this._llmRun(promptJson, newTalk);

Expand Down
13 changes: 8 additions & 5 deletions src/components/flow/Workflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ const debugInfo = (prompt: any) => {
if (merged && merged.length > 0) {
info += `<p>使用Merged数据</p>`
};
info=info.trim();
if(info==""||info=="<p></p>"){
info=i18n.t("debug")+":''"
info = info.trim();
if (info == "" || info == "<p></p>") {
info = i18n.t("debug") + ":''"
}
console.log('debugInfo', info)
return info
Expand All @@ -389,7 +389,7 @@ const parsePrompt2ControlEvent = (id: string, prompt: any) => {
if (prompt.type == 'role') {
prompt.role.merged = prompt.merged;
}
// console.log('role',prompt.role)

const d = debugInfo(prompt);

const controlEvent = {
Expand All @@ -400,9 +400,12 @@ const parsePrompt2ControlEvent = (id: string, prompt: any) => {
debugInfo: d,
newTalk: true,
autoRun: true,
id: id,
id,
createTime: (new Date()).getTime()
}

console.log('controlEvent', controlEvent)

return controlEvent
}

Expand Down
259 changes: 0 additions & 259 deletions src/components/flow/locales/en.json

This file was deleted.

40 changes: 0 additions & 40 deletions src/components/flow/locales/i18nConfig.ts

This file was deleted.

Loading

0 comments on commit d1db431

Please sign in to comment.