File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
preprocessors/text-followup Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def render_ocr():
6868 logging .error ("Request validation failed" )
6969 logging .pii (f"Validation error: { error .message } " )
7070 return jsonify ("Invalid Request JSON format" ), 400
71-
71+
7272 # Check preprocessor data
7373 preprocessors = content ['preprocessors' ]
7474
Original file line number Diff line number Diff line change @@ -298,9 +298,9 @@ def followup():
298298 logging .error (ollama_error_msg + " returning 204" )
299299 return jsonify ("Invalid LLM results" ), 204
300300 else :
301- logging .error (f"Error { response .status_code } : [response text redacted]" )
301+ logging .error (f"Error { response .status_code } : \
302+ [response text redacted]" )
302303 return jsonify ("Invalid response from ollama" ), 204
303-
304304 # check if ollama returned valid json that follows schema
305305 try :
306306 validator = jsonschema .Draft7Validator (data_schema )
You can’t perform that action at this time.
0 commit comments