Skip to content

Commit ac689b6

Browse files
author
SDKAuto
committed
CodeGen from PR 32287 in Azure/azure-rest-api-specs
Merge a20f200b948220835f367aed20d09c3914474192 into 7c962ee95ab11d1f511f2c46773a1ae6a9aca684
1 parent d80bcf3 commit ac689b6

30 files changed

+205
-6519
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "cca025fa6ce483a4878daf0dd3082c97fd29c83b",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"typespec_src": "specification/ai/ModelClient",
5+
"@azure-tools/typespec-python": "0.38.1"
6+
}

sdk/ai/azure-ai-inference/azure/ai/inference/_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class ChatCompletionsClient(ChatCompletionsClientOperationsMixin):
3636
3737
:param endpoint: Service host. Required.
3838
:type endpoint: str
39-
:param credential: Credential used to authenticate requests to the service. Is one of the
40-
following types: AzureKeyCredential, AzureKeyCredential, TokenCredential Required.
39+
:param credential: Credential used to authenticate requests to the service. Is either a key
40+
credential type or a token credential type. Required.
4141
:type credential: ~azure.core.credentials.AzureKeyCredential or
4242
~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials.TokenCredential
4343
:keyword api_version: The API version to use for this operation. Default value is
@@ -114,8 +114,8 @@ class EmbeddingsClient(EmbeddingsClientOperationsMixin):
114114
115115
:param endpoint: Service host. Required.
116116
:type endpoint: str
117-
:param credential: Credential used to authenticate requests to the service. Is one of the
118-
following types: AzureKeyCredential, AzureKeyCredential, TokenCredential Required.
117+
:param credential: Credential used to authenticate requests to the service. Is either a key
118+
credential type or a token credential type. Required.
119119
:type credential: ~azure.core.credentials.AzureKeyCredential or
120120
~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials.TokenCredential
121121
:keyword api_version: The API version to use for this operation. Default value is
@@ -192,8 +192,8 @@ class ImageEmbeddingsClient(ImageEmbeddingsClientOperationsMixin):
192192
193193
:param endpoint: Service host. Required.
194194
:type endpoint: str
195-
:param credential: Credential used to authenticate requests to the service. Is one of the
196-
following types: AzureKeyCredential, AzureKeyCredential, TokenCredential Required.
195+
:param credential: Credential used to authenticate requests to the service. Is either a key
196+
credential type or a token credential type. Required.
197197
:type credential: ~azure.core.credentials.AzureKeyCredential or
198198
~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials.TokenCredential
199199
:keyword api_version: The API version to use for this operation. Default value is

sdk/ai/azure-ai-inference/azure/ai/inference/_configuration.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class ChatCompletionsClientConfiguration: # pylint: disable=too-many-instance-a
2525
2626
:param endpoint: Service host. Required.
2727
:type endpoint: str
28-
:param credential: Credential used to authenticate requests to the service. Is one of the
29-
following types: AzureKeyCredential, AzureKeyCredential, TokenCredential Required.
28+
:param credential: Credential used to authenticate requests to the service. Is either a key
29+
credential type or a token credential type. Required.
3030
:type credential: ~azure.core.credentials.AzureKeyCredential or
3131
~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials.TokenCredential
3232
:keyword api_version: The API version to use for this operation. Default value is
@@ -82,8 +82,8 @@ class EmbeddingsClientConfiguration: # pylint: disable=too-many-instance-attrib
8282
8383
:param endpoint: Service host. Required.
8484
:type endpoint: str
85-
:param credential: Credential used to authenticate requests to the service. Is one of the
86-
following types: AzureKeyCredential, AzureKeyCredential, TokenCredential Required.
85+
:param credential: Credential used to authenticate requests to the service. Is either a key
86+
credential type or a token credential type. Required.
8787
:type credential: ~azure.core.credentials.AzureKeyCredential or
8888
~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials.TokenCredential
8989
:keyword api_version: The API version to use for this operation. Default value is
@@ -139,8 +139,8 @@ class ImageEmbeddingsClientConfiguration: # pylint: disable=too-many-instance-a
139139
140140
:param endpoint: Service host. Required.
141141
:type endpoint: str
142-
:param credential: Credential used to authenticate requests to the service. Is one of the
143-
following types: AzureKeyCredential, AzureKeyCredential, TokenCredential Required.
142+
:param credential: Credential used to authenticate requests to the service. Is either a key
143+
credential type or a token credential type. Required.
144144
:type credential: ~azure.core.credentials.AzureKeyCredential or
145145
~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials.TokenCredential
146146
:keyword api_version: The API version to use for this operation. Default value is

sdk/ai/azure-ai-inference/azure/ai/inference/_model_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=too-many-lines,arguments-differ,signature-differs,no-member
1+
# pylint: disable=too-many-lines
22
# coding=utf-8
33
# --------------------------------------------------------------------------
44
# Copyright (c) Microsoft Corporation. All rights reserved.

sdk/ai/azure-ai-inference/azure/ai/inference/_operations/_operations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pylint: disable=too-many-locals
21
# coding=utf-8
32
# --------------------------------------------------------------------------
43
# Copyright (c) Microsoft Corporation. All rights reserved.

0 commit comments

Comments
 (0)