We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7e3356 commit ae9c9a0Copy full SHA for ae9c9a0
app.py
@@ -234,7 +234,7 @@ def run_mmm_async():
234
logging.debug("run_mmm_async request data: %s", data)
235
236
logging.info("checking that the data has file_refs: %s", data)
237
- if "openaiFileIdRefs" not in data: # TODO: do a more thorough schema check here
+ if ("openaiFileIdRefs" not in data) or (len(data["openaiFileIdRefs"]) == 0): # TODO: do a more thorough schema check here
238
logging.error("Data does not have openaiFileIdRefs")
239
return jsonify({"error": "Request must include openaiFileIdRefs"}), 400
240
else:
0 commit comments