fix prompt_schema

This commit is contained in:
geekan 2023-12-24 15:41:35 +08:00
parent 3b9e20d056
commit 0fca7b3b1f
6 changed files with 12 additions and 12 deletions

View file

@ -8,7 +8,7 @@
from metagpt.config import CONFIG
def get_template(templates, schema=CONFIG.prompt_format):
def get_template(templates, schema=CONFIG.prompt_schema):
selected_templates = templates.get(schema)
if selected_templates is None:
raise ValueError(f"Can't find {schema} in passed in templates")