spring-ai
spring-ai copied to clipboard
The withStreamUsage() of the OpenAiChatOptions is not supported in AzureOpenAiChatOptions.
trafficstars
When using Azure OpenAI, the 'usage' metadata is always returned as empty in the stream().
I understand that 'usage' is supported in the latest OpenAIServiceVersion, V2024_08_01_PREVIEW. Therefore, the AzureOpenAiChatOptions should also support the withStreamUsage() method to align with this.