I just migrated to the newest OpenAI version which uses tool calls instead of function calls. I set stream = true. Just got it to work with OpenAI, but upon migrating to AzureOpenAI and not changing any code in my tool calls handler, I am getting
IndexError: list index out of range
on the line delta = res.choices[0].delta
:
response_gen
async for res in response_gen:
delta = res.choices[0].delta
I've seen some issues with AzureOpenAI returning an empty first spot in the array in earlier preview versions. Anyone know what's the issue here? I'm on 2023-12-01-preview, using GPT-4 1106-Preview.