[@azure/openai
] ChatCompletionsToolCall
type definition doesn't include the index
property
#28889
Closed
1 of 3 tasks
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
The
ChatCompletionsToolCall
type definition doesn't include theindex
property, even when the object returned in a chat streaming call includesindex
. This makes handlingtoolCalls
streaming a bit of a pain.To Reproduce
Steps to reproduce the behavior:
streamChatCompletions()
call that includestools
..choices[#].delta.toolCalls[#]
object include anindex
element that theChatCompletionsToolCall
type doesn't expose.Expected behavior
The
ChatCompletionsToolCall
(or a new type definition) includes theindex
property to be used.The text was updated successfully, but these errors were encountered: