0.2.0 (2023-08-28)
Features Added
- ChatCompletions supports Azure OpenAI's newest feature to use Azure OpenAI with your own data. See
example_client_getchatcompletions_extensions_test.go
for a working example. (PR#21426)
Breaking Changes
- ChatCompletionsOptions, CompletionsOptions, EmbeddingsOptions
DeploymentID
field renamed toDeployment
. - Method
Close()
onEventReader[T]
now returns an error.
Bugs Fixed
- EventReader, used by GetChatCompletionsStream and GetCompletionsStream for streaming results, would not return an
error if the underlying Body reader was closed or EOF'd before the actual DONE: token arrived. This could result in an
infinite loop for callers. (PR#21323)