Skip to content

Commit

Permalink
fix pipeline create bug
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <[email protected]>
  • Loading branch information
yuye-aws committed Apr 2, 2024
1 parent 74f29b4 commit 5eb848b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ protected void createPipelineForTextChunkingProcessor(String pipelineName) throw
URL pipelineURLPath = classLoader.getResource("processor/PipelineForTextChunkingProcessorConfiguration.json");
Objects.requireNonNull(pipelineURLPath);
String requestBody = Files.readString(Path.of(pipelineURLPath.toURI()));
createPipelineProcessor(requestBody, pipelineName);
createPipelineProcessorWithoutModelId(requestBody, pipelineName);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ protected void createPipelineForTextChunkingProcessor(String pipelineName) throw
URL pipelineURLPath = classLoader.getResource("processor/PipelineForTextChunkingProcessorConfiguration.json");
Objects.requireNonNull(pipelineURLPath);
String requestBody = Files.readString(Path.of(pipelineURLPath.toURI()));
createPipelineProcessor(requestBody, pipelineName);
createPipelineProcessorWithoutModelId(requestBody, pipelineName);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ protected void createPipelineProcessor(final String modelId, final String pipeli
createPipelineProcessor(requestBody, pipelineName, modelId);
}

protected void createPipelineProcessor(final String requestBody, final String pipelineName) throws Exception {
protected void createPipelineProcessorWithoutModelId(final String requestBody, final String pipelineName) throws Exception {
Response pipelineCreateResponse = makeRequest(
client(),
"PUT",
Expand Down

0 comments on commit 5eb848b

Please sign in to comment.