Skip to content

Commit 9365f24

Browse files
authored
fix sample and make it runnable (#41102)
1 parent 4480af5 commit 9365f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/usage/GetChatCompletionsStreamAsyncSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static void main(String[] args) throws InterruptedException {
6868
*/
6969

7070
if (CoreUtils.isNullOrEmpty(chatCompletions.getChoices())) {
71-
return null;
71+
return "";
7272
}
7373

7474
ChatResponseMessage delta = chatCompletions.getChoices().get(0).getDelta();

0 commit comments

Comments
 (0)