You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I conducted several tests and can confirm that the issue arises only when using the SDK.
Direct API Calls via Postman:
All requests were successful.
SDK Calls with Debugging: During SDK calls, errors were identified:
Occasionally, all chunks are returned correctly.
A significant percentage of the time, the last 3–4 chunks are not returned, and no error is displayed.
The latest version of the SDK was tested, but the issue remains unresolved.
Direct calls were made to the Mistral model deployed on Azure, following the official SDK documentation; however, the issue persists.
Azure Test Code:
import{MistralAzure}from"@mistralai/mistralai-azure";constmistral=newMistralAzure({apiKey: "some-key",endpoint: "https://mistral-small-2409-some-url.ai.azure.com",});exportasyncfunctionrunMistralSmall(){constresult=awaitmistral.chat.stream({model: "mistral-small-2409",stream: true,messages: [{content:
"Who is the best French painter? Answer in one short sentence.",role: "user",},],});forawait(consteventofresult){// Handle the eventconsole.log(event.data.choices[0]);}}
Responses:
Missing Chunks (the last chunks are not returned):
Hi,
Thanks for opening this issue. I will look into it and get back to you when I have more information.
To speed up the investigation on our side, did you observe this consistently for specific prompts or is it mostly random ?
Hi, Thanks for opening this issue. I will look into it and get back to you when I have more information. To speed up the investigation on our side, did you observe this consistently for specific prompts or is it mostly random ?
Thanks!
I tested with more than 5 random prompts, small and large ones and the behavior is the same.
Description:
I conducted several tests and can confirm that the issue arises only when using the SDK.
Direct calls were made to the Mistral model deployed on Azure, following the official SDK documentation; however, the issue persists.
Azure Test Code:
Responses:
All Chunks Returned Correctly (occasionally, all chunks are returned):
Please investigate this issue as it significantly impacts the reliability of SDK-based integrations.
The text was updated successfully, but these errors were encountered: