1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/md/OpenAI/Models-management/Get-model-list.mdx

216 lines
4.5 KiB
Plaintext
Raw Normal View History

2025-06-13 08:51:43 +03:00
---
sidebar_position: 1
description: Get model list and other functions to work with OpenAI in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, OpenAI]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get model list
Receives a list of available models
`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
<br/>
:::tip
Method at API documentation: [List models](https://platform.openai.com/docs/api-reference/models/list)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
2025-06-29 14:35:33 +03:00
URL = "https://hut.openintegrations.dev/localai/";
Token = "12We...";
2025-06-13 08:51:43 +03:00
Result = OPI_OpenAI.GetModelList(URL, Token);
```
2025-06-18 21:53:54 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint openai GetModelList \
--url "https://api.athenaeum.digital:1122/" \
--token "***"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint openai GetModelList ^
--url "https://api.athenaeum.digital:1122/" ^
--token "***"
```
</TabItem>
</Tabs>
2025-06-13 08:51:43 +03:00
2025-06-17 16:20:59 +03:00
```json title="Result"
{
2025-06-19 11:08:31 +03:00
'data': [
2025-06-17 16:20:59 +03:00
{
2025-06-19 11:08:31 +03:00
'id': 'gpt-4.1',
'created': 1744316542,
'object': 'model',
'owned_by': 'gpt'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'claude-opus-4',
'created': 1747936802,
'object': 'model',
'owned_by': 'claude'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'claude-3.7-sonnet',
'created': 1740427203,
'object': 'model',
'owned_by': 'claude'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'minimax-01',
'created': 1736920499,
'object': 'model',
'owned_by': 'other'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'minimax-m1',
'created': 1750204803,
'object': 'model',
'owned_by': 'minimax'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'deepseek-r1',
'created': 1737388803,
'object': 'model',
'owned_by': 'deepseek'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'grok-3-beta',
'created': 1744243202,
'object': 'model',
'owned_by': 'grok'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'nova-pro-v1',
'created': 1733439604,
'object': 'model',
'owned_by': 'amazon'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'sonar-reasoning',
'created': 1738134002,
'object': 'model',
'owned_by': 'perplexity'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'gemini-2.5-flash-preview:thinking',
'created': 1744920004,
'object': 'model',
'owned_by': 'google-gemini'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'gemini-2.5-flash-preview-05-20',
'created': 1747767603,
'object': 'model',
'owned_by': 'google-gemini'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'gemini-2.5-pro-preview',
'created': 1746547203,
'object': 'model',
'owned_by': 'google-gemini'
2025-06-17 16:20:59 +03:00
},
{
2025-06-19 11:08:31 +03:00
'id': 'gemini-2.5-flash',
'created': 1750179603,
'object': 'model',
'owned_by': 'google-gemini'
},
{
'id': 'gemini-2.5-flash-lite-preview-06-17',
'created': 1750186802,
'object': 'model',
'owned_by': 'google-gemini'
},
{
'id': 'qwq-32b',
'created': 1734379204,
'object': 'model',
'owned_by': 'qwen'
},
{
'id': 'eva-llama-3.33-70b',
'created': 1734379204,
'object': 'model',
'owned_by': 'qwen'
},
{
'id': 'llama-4-maverick:free',
'created': 1743901202,
'object': 'model',
'owned_by': 'llama'
},
{
'id': 'llama-guard-3-8b',
'created': 1739404802,
'object': 'model',
'owned_by': 'llama'
},
{
'id': 'llama-3.3-8b-instruct:free',
'created': 1747346402,
'object': 'model',
'owned_by': 'llama'
},
{
'id': 'llama-4-maverick',
'created': 1743883204,
'object': 'model',
'owned_by': 'llama'
},
{
'id': 'llama-3.1-nemotron-ultra-253b-v1:free',
'created': 1744117203,
'object': 'model',
'owned_by': 'llama'
},
{
'id': 'deepseek-v3-base:free',
'created': 1743274804,
'object': 'model',
'owned_by': 'deepseek'
},
{
'id': 'llama-guard-4-12b',
'created': 1745978402,
'object': 'model',
'owned_by': 'llama'
},
{
'id': 'magistral-medium-2506',
'created': 1749567602,
'object': 'model',
'owned_by': 'mistralai'
},
{
'id': 'mistral-small-3.1-24b-instruct:free',
'created': 1742410805,
'object': 'model',
...
2025-06-17 16:20:59 +03:00
```