11# AiModelControllerApi
22
3- All URIs are relative to * http://localhost:8080 *
4-
53| Method | HTTP request | Description |
64| ------------- | ------------- | -------------|
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) |
5+ | [ ** deleteAiModelById** ] ( #deleteAiModelById ) | ** DELETE** /api/ai/model/{modelUuid} | Delete AI model by ID (deleteAiModelById) |
6+ | [ ** getAiModelById** ] ( #getAiModelById ) | ** GET** /api/ai/model/{modelUuid} | Get AI model by ID (getAiModelById) |
7+ | [ ** getAiModels** ] ( #getAiModels ) | ** GET** /api/ai/model | Get AI models (getAiModels) |
8+ | [ ** saveAiModel** ] ( #saveAiModel ) | ** POST** /api/ai/model | Create or update AI model (saveAiModel) |
9+ | [ ** sendChatRequest** ] ( #sendChatRequest ) | ** POST** /api/ai/model/chat | Send request to AI chat model (sendChatRequest) |
1210
1311
1412
@@ -22,34 +20,9 @@ Deletes the AI model record by its `id`. If a record with the specifie
2220
2321### Parameters
2422
25-
2623| Name | Type | Description | Notes |
2724| ------------- | ------------- | ------------- | -------------|
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 | - |
25+ | ** modelUuid** | ** UUID** | ID of the AI model record | |
5326
5427
5528## getAiModelById
@@ -62,34 +35,9 @@ Fetches an AI model record by its `id`. Available for users with '
6235
6336### Parameters
6437
65-
6638| Name | Type | Description | Notes |
6739| ------------- | ------------- | ------------- | -------------|
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 | - |
40+ | ** modelUuid** | ** UUID** | ID of the AI model record | |
9341
9442
9543## getAiModels
@@ -102,38 +50,13 @@ Returns a page of AI models. You can specify parameters to filter the results. T
10250
10351### Parameters
10452
105-
10653| Name | Type | Description | Notes |
10754| ------------- | ------------- | ------------- | -------------|
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 | - |
55+ | ** pageSize** | ** Integer** | Maximum amount of entities in a one page | |
56+ | ** page** | ** Integer** | Sequence number of page starting from 0 | |
57+ | ** textSearch** | ** String** | The case insensitive ' ; substring' ; filter based on the AI model name, provider and model ID. | [ optional] |
58+ | ** sortProperty** | ** String** | Property of entity to sort by | [ optional] [ enum: createdTime, name, provider, modelId] |
59+ | ** sortOrder** | ** String** | Sort order. ASC (ASCENDING) or DESC (DESCENDING) | [ optional] [ enum: ASC, DESC] |
13760
13861
13962## saveAiModel
@@ -146,34 +69,9 @@ Creates or updates an AI model record. • **Create:** Omit the `id`
14669
14770### Parameters
14871
149-
15072| Name | Type | Description | Notes |
15173| ------------- | ------------- | ------------- | -------------|
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 | - |
74+ | ** aiModel** | ** AiModel** | | |
17775
17876
17977## sendChatRequest
@@ -186,32 +84,7 @@ Submits a single prompt - made up of an optional system message and a required u
18684
18785### Parameters
18886
189-
19087| Name | Type | Description | Notes |
19188| ------------- | ------------- | ------------- | -------------|
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 | - |
89+ | ** tbChatRequest** | ** TbChatRequest** | | |
21790
0 commit comments