Skip to content

Commit

Permalink
fix: Internationalization global variables cannot be retrieved (#2148)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored Feb 7, 2025
1 parent b4d3939 commit b52b01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/application/flow/workflow_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def reset_prompt(self, prompt: str):
globeLabel = f"全局变量.{field.get('value')}"
globeLabelNew = f"global.{field.get('value')}"
globeValue = f"context.get('global').get('{field.get('value', '')}','')"
prompt = prompt.replace(globeLabel, globeValue).replace(globeLabelNew, globeLabel)
prompt = prompt.replace(globeLabel, globeValue).replace(globeLabelNew, globeValue)
return prompt

def generate_prompt(self, prompt: str):
Expand Down

0 comments on commit b52b01c

Please sign in to comment.