|
| 1 | +# AiModelControllerApi |
| 2 | + |
| 3 | +All URIs are relative to *http://localhost:8080* |
| 4 | + |
| 5 | +| Method | HTTP request | Description | |
| 6 | +|------------- | ------------- | -------------| |
| 7 | +| [**deleteAiModelById**](AiModelControllerApi.md#deleteAiModelById) | **DELETE** /api/ai/model/{modelUuid} | Delete AI model by ID (deleteAiModelById) | |
| 8 | +| [**getAiModelById**](AiModelControllerApi.md#getAiModelById) | **GET** /api/ai/model/{modelUuid} | Get AI model by ID (getAiModelById) | |
| 9 | +| [**getAiModels**](AiModelControllerApi.md#getAiModels) | **GET** /api/ai/model | Get AI models (getAiModels) | |
| 10 | +| [**saveAiModel**](AiModelControllerApi.md#saveAiModel) | **POST** /api/ai/model | Create or update AI model (saveAiModel) | |
| 11 | +| [**sendChatRequest**](AiModelControllerApi.md#sendChatRequest) | **POST** /api/ai/model/chat | Send request to AI chat model (sendChatRequest) | |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +## deleteAiModelById |
| 16 | + |
| 17 | +> Boolean deleteAiModelById(modelUuid) |
| 18 | +
|
| 19 | +Delete AI model by ID (deleteAiModelById) |
| 20 | + |
| 21 | +Deletes the AI model record by its `id`. If a record with the specified `id` exists, the record is deleted and the endpoint returns `true`. If no such record exists, the endpoint returns `false`. Available for users with 'TENANT_ADMIN' authority. |
| 22 | + |
| 23 | +### Parameters |
| 24 | + |
| 25 | + |
| 26 | +| Name | Type | Description | Notes | |
| 27 | +|------------- | ------------- | ------------- | -------------| |
| 28 | +| **modelUuid** | **UUID**| ID of the AI model record | | |
| 29 | + |
| 30 | +### Return type |
| 31 | + |
| 32 | +**Boolean** |
| 33 | + |
| 34 | +### Authorization |
| 35 | + |
| 36 | +[api_key_form](../README.md#api_key_form), [http_login_form](../README.md#http_login_form) |
| 37 | + |
| 38 | +### HTTP request headers |
| 39 | + |
| 40 | +- **Content-Type**: Not defined |
| 41 | +- **Accept**: application/json |
| 42 | + |
| 43 | + |
| 44 | +### HTTP response details |
| 45 | +| Status code | Description | Response headers | |
| 46 | +|-------------|-------------|------------------| |
| 47 | +| **200** | OK | - | |
| 48 | +| **400** | Bad Request | - | |
| 49 | +| **401** | Unauthorized | - | |
| 50 | +| **403** | Forbidden | - | |
| 51 | +| **404** | Not Found | - | |
| 52 | +| **429** | Too Many Requests | - | |
| 53 | + |
| 54 | + |
| 55 | +## getAiModelById |
| 56 | + |
| 57 | +> AiModel getAiModelById(modelUuid) |
| 58 | +
|
| 59 | +Get AI model by ID (getAiModelById) |
| 60 | + |
| 61 | +Fetches an AI model record by its `id`. Available for users with 'TENANT_ADMIN' authority. |
| 62 | + |
| 63 | +### Parameters |
| 64 | + |
| 65 | + |
| 66 | +| Name | Type | Description | Notes | |
| 67 | +|------------- | ------------- | ------------- | -------------| |
| 68 | +| **modelUuid** | **UUID**| ID of the AI model record | | |
| 69 | + |
| 70 | +### Return type |
| 71 | + |
| 72 | +[**AiModel**](AiModel.md) |
| 73 | + |
| 74 | +### Authorization |
| 75 | + |
| 76 | +[api_key_form](../README.md#api_key_form), [http_login_form](../README.md#http_login_form) |
| 77 | + |
| 78 | +### HTTP request headers |
| 79 | + |
| 80 | +- **Content-Type**: Not defined |
| 81 | +- **Accept**: application/json |
| 82 | + |
| 83 | + |
| 84 | +### HTTP response details |
| 85 | +| Status code | Description | Response headers | |
| 86 | +|-------------|-------------|------------------| |
| 87 | +| **200** | OK | - | |
| 88 | +| **400** | Bad Request | - | |
| 89 | +| **401** | Unauthorized | - | |
| 90 | +| **403** | Forbidden | - | |
| 91 | +| **404** | Not Found | - | |
| 92 | +| **429** | Too Many Requests | - | |
| 93 | + |
| 94 | + |
| 95 | +## getAiModels |
| 96 | + |
| 97 | +> PageDataAiModel getAiModels(pageSize, page, textSearch, sortProperty, sortOrder) |
| 98 | +
|
| 99 | +Get AI models (getAiModels) |
| 100 | + |
| 101 | +Returns a page of AI models. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Available for users with 'TENANT_ADMIN' authority. |
| 102 | + |
| 103 | +### Parameters |
| 104 | + |
| 105 | + |
| 106 | +| Name | Type | Description | Notes | |
| 107 | +|------------- | ------------- | ------------- | -------------| |
| 108 | +| **pageSize** | **Integer**| Maximum amount of entities in a one page | | |
| 109 | +| **page** | **Integer**| Sequence number of page starting from 0 | | |
| 110 | +| **textSearch** | **String**| The case insensitive 'substring' filter based on the AI model name, provider and model ID. | [optional] | |
| 111 | +| **sortProperty** | **String**| Property of entity to sort by | [optional] [enum: createdTime, name, provider, modelId] | |
| 112 | +| **sortOrder** | **String**| Sort order. ASC (ASCENDING) or DESC (DESCENDING) | [optional] [enum: ASC, DESC] | |
| 113 | + |
| 114 | +### Return type |
| 115 | + |
| 116 | +[**PageDataAiModel**](PageDataAiModel.md) |
| 117 | + |
| 118 | +### Authorization |
| 119 | + |
| 120 | +[api_key_form](../README.md#api_key_form), [http_login_form](../README.md#http_login_form) |
| 121 | + |
| 122 | +### HTTP request headers |
| 123 | + |
| 124 | +- **Content-Type**: Not defined |
| 125 | +- **Accept**: application/json |
| 126 | + |
| 127 | + |
| 128 | +### HTTP response details |
| 129 | +| Status code | Description | Response headers | |
| 130 | +|-------------|-------------|------------------| |
| 131 | +| **200** | OK | - | |
| 132 | +| **400** | Bad Request | - | |
| 133 | +| **401** | Unauthorized | - | |
| 134 | +| **403** | Forbidden | - | |
| 135 | +| **404** | Not Found | - | |
| 136 | +| **429** | Too Many Requests | - | |
| 137 | + |
| 138 | + |
| 139 | +## saveAiModel |
| 140 | + |
| 141 | +> AiModel saveAiModel(aiModel) |
| 142 | +
|
| 143 | +Create or update AI model (saveAiModel) |
| 144 | + |
| 145 | +Creates or updates an AI model record. • **Create:** Omit the `id` to create a new record. The platform assigns a UUID to the new record and returns it in the `id` field of the response. • **Update:** Include an existing `id` to modify that record. If no matching record exists, the API responds with **404 Not Found**. Tenant ID for the AI model will be taken from the authenticated user making the request, regardless of any value provided in the request body. Available for users with 'TENANT_ADMIN' authority. |
| 146 | + |
| 147 | +### Parameters |
| 148 | + |
| 149 | + |
| 150 | +| Name | Type | Description | Notes | |
| 151 | +|------------- | ------------- | ------------- | -------------| |
| 152 | +| **aiModel** | [**AiModel**](AiModel.md)| | | |
| 153 | + |
| 154 | +### Return type |
| 155 | + |
| 156 | +[**AiModel**](AiModel.md) |
| 157 | + |
| 158 | +### Authorization |
| 159 | + |
| 160 | +[api_key_form](../README.md#api_key_form), [http_login_form](../README.md#http_login_form) |
| 161 | + |
| 162 | +### HTTP request headers |
| 163 | + |
| 164 | +- **Content-Type**: application/json |
| 165 | +- **Accept**: application/json |
| 166 | + |
| 167 | + |
| 168 | +### HTTP response details |
| 169 | +| Status code | Description | Response headers | |
| 170 | +|-------------|-------------|------------------| |
| 171 | +| **200** | OK | - | |
| 172 | +| **400** | Bad Request | - | |
| 173 | +| **401** | Unauthorized | - | |
| 174 | +| **403** | Forbidden | - | |
| 175 | +| **404** | Not Found | - | |
| 176 | +| **429** | Too Many Requests | - | |
| 177 | + |
| 178 | + |
| 179 | +## sendChatRequest |
| 180 | + |
| 181 | +> TbChatResponse sendChatRequest(tbChatRequest) |
| 182 | +
|
| 183 | +Send request to AI chat model (sendChatRequest) |
| 184 | + |
| 185 | +Submits a single prompt - made up of an optional system message and a required user message - to the specified AI chat model and returns either the generated answer or an error envelope. Available for users with 'TENANT_ADMIN' authority. |
| 186 | + |
| 187 | +### Parameters |
| 188 | + |
| 189 | + |
| 190 | +| Name | Type | Description | Notes | |
| 191 | +|------------- | ------------- | ------------- | -------------| |
| 192 | +| **tbChatRequest** | [**TbChatRequest**](TbChatRequest.md)| | | |
| 193 | + |
| 194 | +### Return type |
| 195 | + |
| 196 | +[**TbChatResponse**](TbChatResponse.md) |
| 197 | + |
| 198 | +### Authorization |
| 199 | + |
| 200 | +[api_key_form](../README.md#api_key_form), [http_login_form](../README.md#http_login_form) |
| 201 | + |
| 202 | +### HTTP request headers |
| 203 | + |
| 204 | +- **Content-Type**: application/json |
| 205 | +- **Accept**: application/json |
| 206 | + |
| 207 | + |
| 208 | +### HTTP response details |
| 209 | +| Status code | Description | Response headers | |
| 210 | +|-------------|-------------|------------------| |
| 211 | +| **200** | OK | - | |
| 212 | +| **400** | Bad Request | - | |
| 213 | +| **401** | Unauthorized | - | |
| 214 | +| **403** | Forbidden | - | |
| 215 | +| **404** | Not Found | - | |
| 216 | +| **429** | Too Many Requests | - | |
| 217 | + |
0 commit comments