1.0.0-beta.2 (2024-10-24)
Features Added
- Added new
EmbeddingsClient
, to provide support for generating text embeddings using supported models. - Add support for passing a string file path on disk in order to provide an image for chat completions.
Breaking Changes
ChatCompletionsClientOptions
has been renamed toAzureAIInferenceClientOptions
.ChatCompletions
response object has been flattened.ChatCompletions.Choices
has been removed, and the underlying properties have been bubbled up to be on theChatCompletions
object instead.ChatCompletionsFunctionToolCall
has been replaced withChatCompletionsToolCall
.ChatCompletionsFunctionToolDefinition
has been replaced withChatCompletionsToolDefinition
.ChatCompletionsToolSelectionPreset
has been replaced withChatCompletionsToolChoicePreset
.ChatCompletionsNamedFunctionToolSelection
has been replaced withChatCompletionsNamedToolChoice
.ChatCompletionsFunctionToolSelection
has been replaced withChatCompletionsNamedToolChoiceFunction
.StreamingChatCompletionsUpdate.AuthorName
has been removed- Removed
extraParams
from thecomplete
andcompleteAsync
methods. It is now set implicitly ifadditionalProperties
is provided in the options object.
Bugs Fixed
- Fixed support for chat completions streaming while using tools.
Other Changes
- Removed the need to manually provide an
api-key
header when talking to Azure OpenAI.