Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sdk/ai/azure-ai-inference/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"commit": "ed1bc616f47d214139a02368b686abe20f147e31",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/ai/ModelClient",
"@azure-tools/typespec-python": "0.38.4"
}
39 changes: 39 additions & 0 deletions sdk/ai/azure-ai-inference/apiview-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"CrossLanguagePackageId": "AI.Model",
"CrossLanguageDefinitionId": {
"azure.ai.inference.models.ContentItem": "AI.Model.ChatMessageContentItem",
"azure.ai.inference.models.AudioContentItem": "AI.Model.ChatMessageAudioContentItem",
"azure.ai.inference.models.ChatChoice": "AI.Model.ChatChoice",
"azure.ai.inference.models.ChatCompletions": "AI.Model.ChatCompletions",
"azure.ai.inference.models.ChatCompletionsNamedToolChoice": "AI.Model.ChatCompletionsNamedToolChoice",
"azure.ai.inference.models.ChatCompletionsNamedToolChoiceFunction": "AI.Model.ChatCompletionsNamedToolChoiceFunction",
"azure.ai.inference.models.ChatCompletionsToolCall": "AI.Model.ChatCompletionsToolCall",
"azure.ai.inference.models.ChatCompletionsToolDefinition": "AI.Model.ChatCompletionsToolDefinition",
"azure.ai.inference.models.ChatResponseMessage": "AI.Model.ChatResponseMessage",
"azure.ai.inference.models.CompletionsUsage": "AI.Model.CompletionsUsage",
"azure.ai.inference.models.EmbeddingItem": "AI.Model.EmbeddingItem",
"azure.ai.inference.models.EmbeddingsResult": "AI.Model.EmbeddingsResult",
"azure.ai.inference.models.EmbeddingsUsage": "AI.Model.EmbeddingsUsage",
"azure.ai.inference.models.FunctionCall": "AI.Model.FunctionCall",
"azure.ai.inference.models.FunctionDefinition": "AI.Model.FunctionDefinition",
"azure.ai.inference.models.ImageContentItem": "AI.Model.ChatMessageImageContentItem",
"azure.ai.inference.models.ImageEmbeddingInput": "AI.Model.ImageEmbeddingInput",
"azure.ai.inference.models.ImageUrl": "AI.Model.ChatMessageImageUrl",
"azure.ai.inference.models.InputAudio": "AI.Model.ChatMessageInputAudio",
"azure.ai.inference.models.JsonSchemaFormat": "AI.Model.ChatCompletionsResponseFormatJsonSchemaDefinition",
"azure.ai.inference.models.ModelInfo": "AI.Model.ModelInfo",
"azure.ai.inference.models.StreamingChatChoiceUpdate": "AI.Model.StreamingChatChoiceUpdate",
"azure.ai.inference.models.StreamingChatCompletionsUpdate": "AI.Model.StreamingChatCompletionsUpdate",
"azure.ai.inference.models.StreamingChatResponseMessageUpdate": "AI.Model.StreamingChatResponseMessageUpdate",
"azure.ai.inference.models.StreamingChatResponseToolCallUpdate": "AI.Model.StreamingChatResponseToolCallUpdate",
"azure.ai.inference.models.TextContentItem": "AI.Model.ChatMessageTextContentItem",
"azure.ai.inference.models.CompletionsFinishReason": "AI.Model.CompletionsFinishReason",
"azure.ai.inference.models.ChatRole": "AI.Model.ChatRole",
"azure.ai.inference.models.ImageDetailLevel": "AI.Model.ChatMessageImageDetailLevel",
"azure.ai.inference.models.AudioContentFormat": "AI.Model.AudioContentFormat",
"azure.ai.inference.models.ChatCompletionsToolChoicePreset": "AI.Model.ChatCompletionsToolChoicePreset",
"azure.ai.inference.models.ModelType": "AI.Model.ModelType",
"azure.ai.inference.models.EmbeddingEncodingFormat": "AI.Model.EmbeddingEncodingFormat",
"azure.ai.inference.models.EmbeddingInputType": "AI.Model.EmbeddingInputType"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=too-many-lines,arguments-differ,signature-differs,no-member
# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down
239 changes: 13 additions & 226 deletions sdk/ai/azure-ai-inference/azure/ai/inference/_operations/_operations.py

Large diffs are not rendered by default.

1,371 changes: 2 additions & 1,369 deletions sdk/ai/azure-ai-inference/azure/ai/inference/_patch.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=too-many-lines
# pylint: disable=line-too-long,useless-suppression,too-many-lines
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down Expand Up @@ -1361,7 +1361,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
# Iter and wrapped, should have found one node only (the wrap one)
if len(children) != 1:
raise DeserializationError(
"Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( # pylint: disable=line-too-long
"Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format(
xml_name
)
)
Expand Down
2 changes: 1 addition & 1 deletion sdk/ai/azure-ai-inference/azure/ai/inference/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b9"
VERSION = "1.0.0b1"
Loading