Skip to content

Commit

Permalink
fix(specs): remove models from ingestion specs [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3774

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Sep 19, 2024
1 parent 4a7b9c7 commit fb86faa
Show file tree
Hide file tree
Showing 18 changed files with 1,194 additions and 2,880 deletions.
107 changes: 0 additions & 107 deletions algoliasearch/src/main/java/com/algolia/api/IngestionClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1290,70 +1290,6 @@ public CompletableFuture<TaskUpdateResponse> enableTaskV1Async(@Nonnull String t
return this.enableTaskV1Async(taskID, null);
}

/**
* Generates code for the selected model based on the given prompt.
*
* @param generateTransformationCodePayload (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public GenerateTransformationCodeResponse generateTransformationCode(
@Nonnull GenerateTransformationCodePayload generateTransformationCodePayload,
RequestOptions requestOptions
) throws AlgoliaRuntimeException {
return LaunderThrowable.await(generateTransformationCodeAsync(generateTransformationCodePayload, requestOptions));
}

/**
* Generates code for the selected model based on the given prompt.
*
* @param generateTransformationCodePayload (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public GenerateTransformationCodeResponse generateTransformationCode(
@Nonnull GenerateTransformationCodePayload generateTransformationCodePayload
) throws AlgoliaRuntimeException {
return this.generateTransformationCode(generateTransformationCodePayload, null);
}

/**
* (asynchronously) Generates code for the selected model based on the given prompt.
*
* @param generateTransformationCodePayload (required)
* @param requestOptions The requestOptions to send along with the query, they will be merged with
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<GenerateTransformationCodeResponse> generateTransformationCodeAsync(
@Nonnull GenerateTransformationCodePayload generateTransformationCodePayload,
RequestOptions requestOptions
) throws AlgoliaRuntimeException {
Parameters.requireNonNull(
generateTransformationCodePayload,
"Parameter `generateTransformationCodePayload` is required when calling" + " `generateTransformationCode`."
);

HttpRequest request = HttpRequest.builder()
.setPath("/1/transformations/models")
.setMethod("POST")
.setBody(generateTransformationCodePayload)
.build();
return executeAsync(request, requestOptions, new TypeReference<GenerateTransformationCodeResponse>() {});
}

/**
* (asynchronously) Generates code for the selected model based on the given prompt.
*
* @param generateTransformationCodePayload (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<GenerateTransformationCodeResponse> generateTransformationCodeAsync(
@Nonnull GenerateTransformationCodePayload generateTransformationCodePayload
) throws AlgoliaRuntimeException {
return this.generateTransformationCodeAsync(generateTransformationCodePayload, null);
}

/**
* Retrieves an authentication resource by its ID.
*
Expand Down Expand Up @@ -2903,49 +2839,6 @@ public CompletableFuture<ListTasksResponseV1> listTasksV1Async() throws AlgoliaR
return this.listTasksV1Async(null, null, null, null, null, null, null, null, null, null);
}

/**
* Retrieves a list of existing LLM transformation helpers.
*
* @param requestOptions The requestOptions to send along with the query, they will be merged with
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public TransformationModels listTransformationModels(RequestOptions requestOptions) throws AlgoliaRuntimeException {
return LaunderThrowable.await(listTransformationModelsAsync(requestOptions));
}

/**
* Retrieves a list of existing LLM transformation helpers.
*
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public TransformationModels listTransformationModels() throws AlgoliaRuntimeException {
return this.listTransformationModels(null);
}

/**
* (asynchronously) Retrieves a list of existing LLM transformation helpers.
*
* @param requestOptions The requestOptions to send along with the query, they will be merged with
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<TransformationModels> listTransformationModelsAsync(RequestOptions requestOptions)
throws AlgoliaRuntimeException {
HttpRequest request = HttpRequest.builder().setPath("/1/transformations/models").setMethod("GET").build();

return executeAsync(request, requestOptions, new TypeReference<TransformationModels>() {});
}

/**
* (asynchronously) Retrieves a list of existing LLM transformation helpers.
*
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<TransformationModels> listTransformationModelsAsync() throws AlgoliaRuntimeException {
return this.listTransformationModelsAsync(null);
}

/**
* Retrieves a list of transformations.
*
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit fb86faa

Please sign in to comment.