@@ -267,13 +267,13 @@ def load(
267267 file and encodes it as a base64 string, which together with the image format
268268 is then used to format the JSON `url` value passed in the request payload.
269269
270- :ivar image_file: The name of the local image file to load. Required.
271- :vartype image_file: str
272- :ivar image_format: The MIME type format of the image. For example: "jpeg", "png". Required.
273- :vartype image_format: str
274- :ivar detail: The evaluation quality setting to use, which controls relative prioritization of
270+ :keyword image_file: The name of the local image file to load. Required.
271+ :paramtype image_file: str
272+ :keyword image_format: The MIME type format of the image. For example: "jpeg", "png". Required.
273+ :paramtype image_format: str
274+ :keyword detail: The evaluation quality setting to use, which controls relative prioritization of
275275 speed, token consumption, and accuracy. Known values are: "auto", "low", and "high".
276- :vartype detail: str or ~azure.ai.inference.models.ImageDetailLevel
276+ :paramtype detail: str or ~azure.ai.inference.models.ImageDetailLevel
277277 :return: An ImageUrl object with the image data encoded as a base64 string.
278278 :rtype: ~azure.ai.inference.models.ImageUrl
279279 :raises FileNotFoundError: when the image file could not be opened.
@@ -293,13 +293,13 @@ def load(cls, *, image_file: str, image_format: str, text: Optional[str] = None)
293293 file and encodes it as a base64 string, which together with the image format
294294 is then used to format the JSON `url` value passed in the request payload.
295295
296- :ivar image_file: The name of the local image file to load. Required.
297- :vartype image_file: str
298- :ivar image_format: The MIME type format of the image. For example: "jpeg", "png". Required.
299- :vartype image_format: str
300- :ivar text: Optional. The text input to feed into the model (like DINO, CLIP).
296+ :keyword image_file: The name of the local image file to load. Required.
297+ :paramtype image_file: str
298+ :keyword image_format: The MIME type format of the image. For example: "jpeg", "png". Required.
299+ :paramtype image_format: str
300+ :keyword text: Optional. The text input to feed into the model (like DINO, CLIP).
301301 Returns a 422 error if the model doesn't support the value or parameter.
302- :vartype text: str
302+ :paramtype text: str
303303 :return: An ImageEmbeddingInput object with the image data encoded as a base64 string.
304304 :rtype: ~azure.ai.inference.models.EmbeddingsInput
305305 :raises FileNotFoundError: when the image file could not be opened.
0 commit comments