correct this yaml [code]
- User
correct this yaml
IO_TypeFinder: system_prompt:"""You are an AI assistant tasked with analyzing function definition and it's dependencies to generate the test cases for this function. Make sure the generated test cases are complete and can be run directly without any modification.""" user_prompt:"I would like to inquire about your services." - Assistant
IO_TypeFinder: system_prompt: "You are an AI assistant tasked with analyzing function definition and its dependencies to generate the test cases for this function. Make sure the generated test cases are complete and can be run directly without any modification." user_prompt: "I would like to inquire about your services."
- User
convert to a json
- Assistant
{ "IO_TypeFinder": { "system_prompt": "You are an AI assistant tasked with analyzing function definition and its dependencies to generate the test cases for this function. Make sure the generated test cases are complete and can be run directly without any modification.", "user_prompt": "I would like to inquire about your services." } }
- User
correct
import jinja2 with open(r'prompts.yaml', 'r') as file: # prompts = yaml.safe_load(file) conf = file.read().rstrip() template = Template(conf) conf = template.render(x='val3') prompts = yaml.safe_load(conf) - Assistant
import jinja2 import yaml
with open(r'prompts.yaml', 'r') as file: conf = file.read().rstrip() template = jinja2.Template(conf) conf = template.render(x='val3') prompts = yaml.safe_load(conf)