Get Model Info - 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.
GET https:///info?api-version=2024-05-01-preview
Name | In | Required | Type | Description |
---|---|---|---|---|
api-version
|
query | True |
string |
The API version to use for this operation. |
Name | Type | Description |
---|---|---|
200 OK |
The request has succeeded. |
|
Other Status Codes |
An unexpected error response. Headers x-ms-error-code: string |
Type:
apiKey
In:
header
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Name | Description |
---|---|
https://ml.azure.com/.default |
Sample request
GET https:///info?api-version=2024-05-01-preview
Sample response
{
"model_name": "Phi-3.5-mini-instruct",
"model_type": "chat-completion",
"model_provider_name": "Microsoft"
}
Sample request
GET https:///info?api-version=2024-05-01-preview
Sample response
{
"model_name": "Phi-3.5-mini-instruct",
"model_type": "chat-completion",
"model_provider_name": "Microsoft"
}
Name | Description |
---|---|
Azure. |
The error object. |
Azure. |
A response containing error details. |
Azure. |
An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
Model |
Represents some basic information about the AI model. |
Model |
The type of AI model |
The error object.
Name | Type | Description |
---|---|---|
code |
string |
One of a server-defined set of error codes. |
details |
An array of details about specific errors that led to this reported error. |
|
innererror |
An object containing more specific information than the current object about the error. |
|
message |
string |
A human-readable representation of the error. |
target |
string |
The target of the error. |
A response containing error details.
Name | Type | Description |
---|---|---|
error |
The error object. |
An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
Name | Type | Description |
---|---|---|
code |
string |
One of a server-defined set of error codes. |
innererror |
Inner error. |
Represents some basic information about the AI model.
Name | Type | Description |
---|---|---|
model_name |
string |
The name of the AI model. For example: |
model_provider_name |
string |
The model provider name. For example: |
model_type |
The type of the AI model. A Unique identifier for the profile. |
The type of AI model
Value | Description |
---|---|
chat-completion |
A model capable of taking chat-formatted messages and generate responses |
embeddings |
A model capable of generating embeddings from a text |