model_infos
Creates, updates, deletes, gets or lists a model_infos resource.
Overview
| Name | model_infos |
| Type | Resource |
| Id | azure.ai_inference.model_infos |
Fields
The following fields are returned by SELECT queries:
- get_model_info
| Name | Datatype | Description |
|---|---|---|
model_name | string | The name of the AI model. For example: Phi21. Required. |
model_provider_name | string | The model provider name. For example: Microsoft Research. Required. |
model_type | string | 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". (embeddings, image_generation, text_generation, image_embeddings, audio_generation, chat_completion) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_model_info | select | endpoint | Returns information about the AI model. The method makes a REST API call to the /info route on the given endpoint. This method will only work when using Serverless API or Managed Compute endpoint. It will not work for GitHub Models endpoint or Azure OpenAI endpoint. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
SELECT examples
- get_model_info
Returns information about the AI model. The method makes a REST API call to the /info route on the given endpoint. This method will only work when using Serverless API or Managed Compute endpoint. It will not work for GitHub Models endpoint or Azure OpenAI endpoint.
SELECT
model_name,
model_provider_name,
model_type
FROM azure.ai_inference.model_infos
WHERE endpoint = '{{ endpoint }}' -- required
;