fixbug: timeout & prompt_format

This commit is contained in:
莘权 马 2023-12-24 12:30:08 +08:00
parent 6465b2eaa9
commit f441c88156
15 changed files with 46 additions and 47 deletions

View file

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