@@ -77,7 +77,7 @@ async def load_client(
77
77
:return: The appropriate asynchronous client associated with the given endpoint
78
78
:rtype: ~azure.ai.inference.aio.ChatCompletionsClient or ~azure.ai.inference.aio.EmbeddingsClient
79
79
or ~azure.ai.inference.aio.ImageEmbeddingsClient
80
- :raises ~azure.core.exceptions.HttpResponseError
80
+ :raises ~azure.core.exceptions.HttpResponseError:
81
81
"""
82
82
83
83
async with ChatCompletionsClient (
@@ -295,7 +295,7 @@ async def complete(
295
295
:paramtype model: str
296
296
:return: ChatCompletions for non-streaming, or AsyncIterable[StreamingChatCompletionsUpdate] for streaming.
297
297
:rtype: ~azure.ai.inference.models.ChatCompletions or ~azure.ai.inference.models.AsyncStreamingChatCompletions
298
- :raises ~azure.core.exceptions.HttpResponseError
298
+ :raises ~azure.core.exceptions.HttpResponseError:
299
299
"""
300
300
301
301
@overload
@@ -319,7 +319,7 @@ async def complete(
319
319
:paramtype content_type: str
320
320
:return: ChatCompletions for non-streaming, or AsyncIterable[StreamingChatCompletionsUpdate] for streaming.
321
321
:rtype: ~azure.ai.inference.models.ChatCompletions or ~azure.ai.inference.models.AsyncStreamingChatCompletions
322
- :raises ~azure.core.exceptions.HttpResponseError
322
+ :raises ~azure.core.exceptions.HttpResponseError:
323
323
"""
324
324
325
325
@overload
@@ -342,7 +342,7 @@ async def complete(
342
342
:paramtype content_type: str
343
343
:return: ChatCompletions for non-streaming, or AsyncIterable[StreamingChatCompletionsUpdate] for streaming.
344
344
:rtype: ~azure.ai.inference.models.ChatCompletions or ~azure.ai.inference.models.AsyncStreamingChatCompletions
345
- :raises ~azure.core.exceptions.HttpResponseError
345
+ :raises ~azure.core.exceptions.HttpResponseError:
346
346
"""
347
347
348
348
@distributed_trace_async
@@ -373,7 +373,7 @@ async def complete(
373
373
"""Gets chat completions for the provided chat messages.
374
374
Completions support a wide variety of tasks and generate text that continues from or
375
375
"completes" provided prompt data. When using this method with `stream=True`, the response is streamed
376
- back to the client. Iterate over the resulting ~azure.ai.inference.models.StreamingChatCompletions
376
+ back to the client. Iterate over the resulting :class:` ~azure.ai.inference.models.StreamingChatCompletions`
377
377
object to get content updates as they arrive.
378
378
379
379
:param body: Is either a MutableMapping[str, Any] type (like a dictionary) or a IO[bytes] type
@@ -455,7 +455,7 @@ async def complete(
455
455
:paramtype model: str
456
456
:return: ChatCompletions for non-streaming, or AsyncIterable[StreamingChatCompletionsUpdate] for streaming.
457
457
:rtype: ~azure.ai.inference.models.ChatCompletions or ~azure.ai.inference.models.AsyncStreamingChatCompletions
458
- :raises ~azure.core.exceptions.HttpResponseError
458
+ :raises ~azure.core.exceptions.HttpResponseError:
459
459
"""
460
460
error_map = {
461
461
401 : ClientAuthenticationError ,
@@ -540,7 +540,7 @@ async def get_model_info(self, **kwargs: Any) -> _models.ModelInfo:
540
540
541
541
:return: ModelInfo. The ModelInfo is compatible with MutableMapping
542
542
:rtype: ~azure.ai.inference.models.ModelInfo
543
- :raises ~azure.core.exceptions.HttpResponseError
543
+ :raises ~azure.core.exceptions.HttpResponseError:
544
544
"""
545
545
if not self ._model_info :
546
546
self ._model_info = await self ._get_model_info (** kwargs ) # pylint: disable=attribute-defined-outside-init
@@ -621,7 +621,7 @@ async def embed(
621
621
:paramtype input_type: str or ~azure.ai.inference.models.EmbeddingInputType
622
622
:return: EmbeddingsResult. The EmbeddingsResult is compatible with MutableMapping
623
623
:rtype: ~azure.ai.inference.models.EmbeddingsResult
624
- :raises ~azure.core.exceptions.HttpResponseError
624
+ :raises ~azure.core.exceptions.HttpResponseError:
625
625
"""
626
626
627
627
@overload
@@ -643,7 +643,7 @@ async def embed(
643
643
:paramtype content_type: str
644
644
:return: EmbeddingsResult. The EmbeddingsResult is compatible with MutableMapping
645
645
:rtype: ~azure.ai.inference.models.EmbeddingsResult
646
- :raises ~azure.core.exceptions.HttpResponseError
646
+ :raises ~azure.core.exceptions.HttpResponseError:
647
647
"""
648
648
649
649
@overload
@@ -664,7 +664,7 @@ async def embed(
664
664
:paramtype content_type: str
665
665
:return: EmbeddingsResult. The EmbeddingsResult is compatible with MutableMapping
666
666
:rtype: ~azure.ai.inference.models.EmbeddingsResult
667
- :raises ~azure.core.exceptions.HttpResponseError
667
+ :raises ~azure.core.exceptions.HttpResponseError:
668
668
"""
669
669
670
670
@distributed_trace_async
@@ -711,7 +711,7 @@ async def embed(
711
711
:paramtype input_type: str or ~azure.ai.inference.models.EmbeddingInputType
712
712
:return: EmbeddingsResult. The EmbeddingsResult is compatible with MutableMapping
713
713
:rtype: ~azure.ai.inference.models.EmbeddingsResult
714
- :raises ~azure.core.exceptions.HttpResponseError
714
+ :raises ~azure.core.exceptions.HttpResponseError:
715
715
"""
716
716
error_map : MutableMapping [int , Type [HttpResponseError ]] = {
717
717
401 : ClientAuthenticationError ,
@@ -787,7 +787,7 @@ async def get_model_info(self, **kwargs: Any) -> _models.ModelInfo:
787
787
788
788
:return: ModelInfo. The ModelInfo is compatible with MutableMapping
789
789
:rtype: ~azure.ai.inference.models.ModelInfo
790
- :raises ~azure.core.exceptions.HttpResponseError
790
+ :raises ~azure.core.exceptions.HttpResponseError:
791
791
"""
792
792
if not self ._model_info :
793
793
self ._model_info = await self ._get_model_info (** kwargs ) # pylint: disable=attribute-defined-outside-init
@@ -868,7 +868,7 @@ async def embed(
868
868
:paramtype input_type: str or ~azure.ai.inference.models.EmbeddingInputType
869
869
:return: EmbeddingsResult. The EmbeddingsResult is compatible with MutableMapping
870
870
:rtype: ~azure.ai.inference.models.EmbeddingsResult
871
- :raises ~azure.core.exceptions.HttpResponseError
871
+ :raises ~azure.core.exceptions.HttpResponseError:
872
872
"""
873
873
874
874
@overload
@@ -890,7 +890,7 @@ async def embed(
890
890
:paramtype content_type: str
891
891
:return: EmbeddingsResult. The EmbeddingsResult is compatible with MutableMapping
892
892
:rtype: ~azure.ai.inference.models.EmbeddingsResult
893
- :raises ~azure.core.exceptions.HttpResponseError
893
+ :raises ~azure.core.exceptions.HttpResponseError:
894
894
"""
895
895
896
896
@overload
@@ -911,7 +911,7 @@ async def embed(
911
911
:paramtype content_type: str
912
912
:return: EmbeddingsResult. The EmbeddingsResult is compatible with MutableMapping
913
913
:rtype: ~azure.ai.inference.models.EmbeddingsResult
914
- :raises ~azure.core.exceptions.HttpResponseError
914
+ :raises ~azure.core.exceptions.HttpResponseError:
915
915
"""
916
916
917
917
@distributed_trace_async
@@ -958,7 +958,7 @@ async def embed(
958
958
:paramtype input_type: str or ~azure.ai.inference.models.EmbeddingInputType
959
959
:return: EmbeddingsResult. The EmbeddingsResult is compatible with MutableMapping
960
960
:rtype: ~azure.ai.inference.models.EmbeddingsResult
961
- :raises ~azure.core.exceptions.HttpResponseError
961
+ :raises ~azure.core.exceptions.HttpResponseError:
962
962
"""
963
963
error_map : MutableMapping [int , Type [HttpResponseError ]] = {
964
964
401 : ClientAuthenticationError ,
@@ -1034,7 +1034,7 @@ async def get_model_info(self, **kwargs: Any) -> _models.ModelInfo:
1034
1034
1035
1035
:return: ModelInfo. The ModelInfo is compatible with MutableMapping
1036
1036
:rtype: ~azure.ai.inference.models.ModelInfo
1037
- :raises ~azure.core.exceptions.HttpResponseError
1037
+ :raises ~azure.core.exceptions.HttpResponseError:
1038
1038
"""
1039
1039
if not self ._model_info :
1040
1040
self ._model_info = await self ._get_model_info (** kwargs ) # pylint: disable=attribute-defined-outside-init
0 commit comments