ressay1973 commited on
Commit
e292ac5
·
verified ·
1 Parent(s): 4e824f3

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +7 -0
prompts.yaml CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  "system_prompt": |-
2
  You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.
3
  To do so, you have been given access to a list of tools: these tools are basically Python functions which you can call with code.
 
1
+ try:
2
+ with open("prompts.yaml", 'r') as stream:
3
+ prompt_templates = yaml.safe_load(stream)
4
+ print("Prompts loaded successfully")
5
+ except yaml.YAMLError as e:
6
+ print(f"Error loading prompts.yaml: {e}")
7
+ prompt_templates = {}
8
  "system_prompt": |-
9
  You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.
10
  To do so, you have been given access to a list of tools: these tools are basically Python functions which you can call with code.