Skip to content

Commit 05cccf1

Browse files
committed
fix: Internationalization global variables cannot be retrieved
1 parent d9e18f1 commit 05cccf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/workflow_manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ def reset_prompt(self, prompt: str):
745745
globeLabel = f"全局变量.{field.get('value')}"
746746
globeLabelNew = f"global.{field.get('value')}"
747747
globeValue = f"context.get('global').get('{field.get('value', '')}','')"
748-
prompt = prompt.replace(globeLabel, globeValue).replace(globeLabelNew, globeLabel)
748+
prompt = prompt.replace(globeLabel, globeValue).replace(globeLabelNew, globeValue)
749749
return prompt
750750

751751
def generate_prompt(self, prompt: str):

0 commit comments

Comments
 (0)