autogen icon indicating copy to clipboard operation
autogen copied to clipboard

add tolerance for empty choices

Open MohMaz opened this issue 1 year ago • 0 comments

Why are these changes needed?

I encountered this issue only in AzureOpenAIChatCompletionClient, adding some tolerance for empty choices ! Not a super clean fix ... just works to unblock updating streaming samples using AzureOpenAIChatCompletionClient

Related issue number

closes #4213

Checks

  • [x] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
  • [x] I've added tests (if relevant) corresponding to the changes introduced in this PR.
  • [x] I've made sure all auto checks have passed.

MohMaz avatar Nov 22 '24 07:11 MohMaz