Open chuangzhidan opened 3 months ago
def _register_scene_prompt_template( scene_registry: Dict[str, Dict], prompt_template, language: str, model_names: List[str], ): for model_name in model_names: if model_name not in scene_registry: scene_registry[model_name] = dict() registry = scene_registry[model_name] registry[language] = prompt_template
不太理解dbgpt/core/_private/prompt_registry.py中为什么language]等于提示词模板 prompt_template 想知道是哪个文件中的函数或变量给提示词模板的{}变量}赋值?
No response
This issue has been marked as stale, because it has been over 30 days without any activity.
stale
Search before asking
Description
def _register_scene_prompt_template( scene_registry: Dict[str, Dict], prompt_template, language: str, model_names: List[str], ): for model_name in model_names: if model_name not in scene_registry: scene_registry[model_name] = dict() registry = scene_registry[model_name] registry[language] = prompt_template
不太理解dbgpt/core/_private/prompt_registry.py中为什么language]等于提示词模板 prompt_template 想知道是哪个文件中的函数或变量给提示词模板的{}变量}赋值?
Documentation Links
No response
Are you willing to submit PR?