Skip to content

Commit 271b931

Browse files
algolia-botFluf22
andcommitted
feat(specs): add transformation copilot to ingestion (generated)
algolia/api-clients-automation#3479 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 36d604d commit 271b931

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

packages/ingestion/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export * from './mappingInput';
6363
export * from './mappingKitAction';
6464
export * from './mappingTypeCSV';
6565
export * from './methodType';
66+
export * from './model';
6667
export * from './onDemandTrigger';
6768
export * from './onDemandTriggerInput';
6869
export * from './onDemandTriggerType';
@@ -134,6 +135,7 @@ export * from './transformation';
134135
export * from './transformationCreate';
135136
export * from './transformationCreateResponse';
136137
export * from './transformationError';
138+
export * from './transformationModels';
137139
export * from './transformationSearch';
138140
export * from './transformationTry';
139141
export * from './transformationTryResponse';

packages/ingestion/model/model.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
export type Model = {
4+
fullname: string;
5+
6+
modelName: string;
7+
8+
systemPrompt: string;
9+
10+
id: string;
11+
12+
provider: string;
13+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
import type { Model } from './model';
4+
5+
/**
6+
* List of available AI models for transformation purposes.
7+
*/
8+
export type TransformationModels = {
9+
llms: Model[];
10+
};

packages/ingestion/src/ingestionClient.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ import type { TaskV1 } from '../model/taskV1';
101101
import type { Transformation } from '../model/transformation';
102102
import type { TransformationCreate } from '../model/transformationCreate';
103103
import type { TransformationCreateResponse } from '../model/transformationCreateResponse';
104+
import type { TransformationModels } from '../model/transformationModels';
104105
import type { TransformationSearch } from '../model/transformationSearch';
105106
import type { TransformationTry } from '../model/transformationTry';
106107
import type { TransformationTryResponse } from '../model/transformationTryResponse';
@@ -1871,6 +1872,33 @@ export function createIngestionClient({
18711872
return transporter.request(request, requestOptions);
18721873
},
18731874

1875+
/**
1876+
* Retrieves a list of existing LLM transformation helpers.
1877+
*
1878+
* Required API Key ACLs:
1879+
* - addObject
1880+
* - deleteIndex
1881+
* - editSettings.
1882+
*
1883+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1884+
*/
1885+
listTransformationModels(
1886+
requestOptions?: RequestOptions
1887+
): Promise<TransformationModels> {
1888+
const requestPath = '/1/transformations/copilot';
1889+
const headers: Headers = {};
1890+
const queryParameters: QueryParameters = {};
1891+
1892+
const request: Request = {
1893+
method: 'GET',
1894+
path: requestPath,
1895+
queryParameters,
1896+
headers,
1897+
};
1898+
1899+
return transporter.request(request, requestOptions);
1900+
},
1901+
18741902
/**
18751903
* Retrieves a list of transformations.
18761904
*

0 commit comments

Comments
 (0)