-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Req Interceptor with audio files #311
Comments
Hi @fragakos. This is showcased in an example in the link above: I would also recommend checking what Deep Chat passes in the So to add the
Let me know if this helps you. |
The functionality you are describing seems very familiar to the new OpenAI Realtime API. |
I am using the stream open ai api but I've set up a dummy response in order to do my testing. The bug occurs before the Everything in the api. |
That is strange, I would like to see your configuration for Deep Chat and how you have set up your code. Thanks. |
Hi @fragakos. May I ask, in the two given images, is the second one causing an error? Let me know if you have any more info on this. Thankyou! |
The second image is the problem, even though they look the same. |
This is very interesting!! So the issue is in the frontend and more specifically in Deep Chat itself then?? |
Just to save me time trying to reproduce the error tomorrow, I would really appreciate if you could give me the minimal configuration required to reproduce the error. 🙇 |
What do you mean with minimal configuration? |
Hey @fragakos. I have looked at your code and everything appears to be in order. I am very surprised that you are getting that error. I am wondering if there some sort of middleware that you are using in your NextJS project or perhaps you are using other packages to that work with http? If everything is the same as the examples provided, then I am unfortunately not sure why you are getting that error. 😢 I would suggest inspecting the actual outgoing request in your browser's console and see if the body/headers are correct. If they are, then maybe the issue is on the actual backend. Apologies that I could not help you more. 🙇 Thankyou! |
I am using request Inteseptor to catch an audio file, transcribe it and return as a text. I know the details when text is sent are different that when a audio file is sent. When a audio file is detected the returned vaulue will be an RequestDetails object constructed by me. But the OpenAi stream api received and [object Object] and not the json it is expecting.
Any ideas??
This is what i am returning from the interceptor
The text was updated successfully, but these errors were encountered: