Fix HTTP 422 error for api_inference_sample.py (#1868)

This commit is contained in:
Brent Kwok 2024-07-19 18:54:43 -07:00 committed by GitHub
parent 38290057f2
commit 07b2ed3d8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,7 @@ def process_question(danswer_url: str, question: str, api_key: str | None) -> No
"message": question,
"chat_session_id": chat_session_id,
"parent_message_id": None,
"file_descriptors": [],
# Default Question Answer prompt
"prompt_id": 0,
# Not specifying any specific docs to chat to, we want to run a search