ModelInfo Class

Represents some basic information about the AI model.

Inheritance
azure.ai.inference._model_base.Model
ModelInfo

Constructor

ModelInfo(*args: Any, **kwargs: Any)

Variables

Name Description
model_name
str

The name of the AI model. For example: Phi21. Required.

model_type

The type of the AI model. A Unique identifier for the profile. Required. Known values are: "embeddings", "image_generation", "text_generation", "image_embeddings", "audio_generation", and "chat_completion".

model_provider_name
str

The model provider name. For example: Microsoft Research. Required.

Methods

as_dict

Return a dict that can be turned into json using json.dump.

clear
copy
get
items
keys
pop
popitem
setdefault
update
values

as_dict

Return a dict that can be turned into json using json.dump.

as_dict(*, exclude_readonly: bool = False) -> Dict[str, Any]

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

Returns

Type Description

A dict JSON compatible object

clear

clear() -> None

copy

copy() -> Model

get

get(key: str, default: Any = None) -> Any

Parameters

Name Description
key
Required
default
Required
Default value: None

items

items() -> ItemsView[str, Any]

keys

keys() -> KeysView[str]

pop

pop(key: str, default: ~typing.Any = <object object>) -> Any

Parameters

Name Description
key
Required
default
Required

popitem

popitem() -> Tuple[str, Any]

setdefault

setdefault(key: str, default: ~typing.Any = <object object>) -> Any

Parameters

Name Description
key
Required
default
Required

update

update(*args: Any, **kwargs: Any) -> None

values

values() -> ValuesView[Any]

Attributes

model_name

Phi21. Required.

model_name: str

model_provider_name

Microsoft Research. Required.

model_provider_name: str

model_type

The type of the AI model. A Unique identifier for the profile. Required. Known values are: "embeddings", "image_generation", "text_generation", "image_embeddings", "audio_generation", and "chat_completion".

model_type: str | _models.ModelType