Get model list
Receives a list of available models
- Parameters
- Advanced call ?
Function GetModelList(Val URL, Val Token, Val AdditionalHeaders = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | OpenAI server URL |
| Token | --token | String | ✔ | OpenAI authorization token |
| AdditionalHeaders | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
Returns
Map Of KeyAndValue - Processing result
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Method at API documentation: List models
1C:Enterprise/OneScript code example
URL = "https://hut.openintegrations.dev/localai/";
Token = "12We34...";
Result = OPI_OpenAI.GetModelList(URL, Token);
- Bash
- CMD/Bat
oint openai GetModelList \
--url "https://hut.openintegrations.dev/localai/" \
--token "***"
oint openai GetModelList ^
--url "https://hut.openintegrations.dev/localai/" ^
--token "***"
Result
{
"object": "list",
"data": [
{
"id": "gpt-4",
"object": "model"
},
{
"id": "moondream2-20250414",
"object": "model"
},
{
"id": "smolvlm-256m-instruct",
"object": "model"
},
{
"id": "text-embedding-ada-002",
"object": "model"
},
{
"id": "whisper-1",
"object": "model"
},
{
"id": "stablediffusion",
"object": "model"
},
{
"id": "gpt-4o",
"object": "model"
},
{
"id": "tts-1",
"object": "model"
},
{
"id": "silero-vad",
"object": "model"
},
{
"id": "jina-reranker-v1-base-en",
"object": "model"
},
{
"id": "minicpm-v-2_6-mmproj-f16.gguf",
"object": "model"
},
{
"id": "mmproj-SmolVLM-256M-Instruct-Q8_0.gguf",
"object": "model"
},
{
"id": "moondream2-mmproj-f16-20250414.gguf",
"object": "model"
}
]
}