I am trying to use langchain simple chatbot in a flask API. Unable to get the response when @response(chatbot_message_schema, 200) is set. The route will return directly the response without waiting for the chatbot response. I only get the response when I comment @response(chatbot_message_schema, 200), the response is just plaintext.
APIFairy helps generate documentation for JSON-based APIs. Anything that is not JSON needs to be added to the OpenAPI schema manually, since APIFairy does not understand it.
I am trying to use
langchain
simple chatbot in a flask API. Unable to get the response when@response(chatbot_message_schema, 200)
is set. The route will return directly the response without waiting for the chatbot response. I only get the response when I comment@response(chatbot_message_schema, 200)
, the response is just plaintext.