feat(dprompt.py): 解耦完成

This commit is contained in:
Rock Chin
2023-03-26 13:28:26 +00:00
parent f6cad85476
commit bb4b897934
4 changed files with 187 additions and 148 deletions
+2 -2
View File
@@ -141,9 +141,9 @@ class Session:
import pkg.openai.dprompt as dprompt
if use_default is None:
use_default = dprompt.get_current()
use_default = dprompt.mode_inst().get_using_name()
current_default_prompt = dprompt.get_prompt(use_default)
current_default_prompt, _ = dprompt.mode_inst().get_prompt(use_default)
return current_default_prompt
def __init__(self, name: str):