Closed azohra closed 1 year ago
AzureChatOpenAI Streaming first response chunk:
FIX:
https://github.com/rock-you/langchain/commit/abd63a026cff1654e68ffcdd5a82828f87fc626b
@rock-you are you planning to create PR for this? Because I am also facing same issue when using streaming with azure openai.
I am also experiencing the same problem, and having this fix would be great
Does this occur for you when setting version to 2023-05-15
?
Looked into this on the JS side and it seems there's a change in events in the preview version - given that it's preview
, it might be best to avoid making an unnecessary change here until the mainline version comes out:
Any ideas on a solution here, while I understand the comment about it being preview, it does seem like its here to stay, as far as I can see this is a blocker for being able to test out using OpenAI Functions with streaming responses.
Unfortunately yeah - it's going to require some code changes. If you have time to submit a PR that'd be awesome, otherwise I can look tomorrow.
I had the same problem with version "2023-07-01-preview"
Agreed yes I haven’t dug in to see what the fox would entail I can’t imagine it’s too difficult, but of course devil is in the details?
Opened up the fix above as a PR to hopefully help get this unblocked
System Info
langchain-0.0.205-py3, macos ventura, python 3.11
Who can help?
@hwchase17 / @agola11
Information
Related Components
Reproduction
Reproduction code
Output of command 1 (OpenAI)
Output of command 2 (Azure OpenAI)
Expected behavior
I can't find anything in existing issues or documentation stating that there is a known bug in the AzureOpenAI Service Streaming.