File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def query():
5555 yaml_output = yaml .dump_all (configs , default_flow_style = False , allow_unicode = True )
5656 return Response (yaml_output , mimetype = 'text/yaml' )
5757 except Exception as e :
58- return jsonify ({'error' : f'Failed to parse generated YAML: { str (e )} ' , 'response' : ai_response , 'yaml_content' : yaml_content })
58+ return jsonify ({'error' : f'LLM generated invalid YAML: { str (e )} ' })
5959
6060 # Try to parse the output directly
6161 try :
@@ -64,7 +64,7 @@ def query():
6464 yaml_output = yaml .dump_all (configs , default_flow_style = False , allow_unicode = True )
6565 return Response (yaml_output , mimetype = 'text/yaml' )
6666 except Exception as e :
67- return jsonify ({'error' : f'Failed to parse generated YAML: { str (e )} ' , 'response' : ai_response , 'yaml_content' : ai_response })
67+ return jsonify ({'error' : f'LLM generated invalid YAML: { str (e )} ' })
6868
6969@app .route ('/health' , methods = ['GET' ])
7070def health ():
You can’t perform that action at this time.
0 commit comments