[Question]: flask application sending a response back to LibreChat UI #4873
Unanswered
victorstorchan
asked this question in
Troubleshooting
Replies: 1 comment
-
same issue, any solution yet? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is your question?
hello, I am currently facing an issue when trying to send back an answer to the librechat UI:
I have a custom endpoint from a flask app that produces a text answer wrapped with a chat_completion function (with streaming) based on a query coming from LibreChat. I am unable to send a response back to the librechat UI.
More Details
without streaming, when
forcePrompt:true
, I have a "blank" answer (nothing returned, this issue seems to have already reported)however, when
forcePrompt:false
, I have a[OpenAIClient.chatCompletion] Unhandled error type request ended without sending any chunks
error.Can anyone share an example of generate_stream() function and json response that work?
for now, this dummy example does not work:
Thanks
What is the main subject of your question?
No response
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions