Skip to content

Commit

Permalink
remove logic about replace quota for finetuning model (#289) (#291)
Browse files Browse the repository at this point in the history
* remove logic about replace quota for finetuning model



* change logic to omit replace on finetune



* change equal logic



* fix logic error



---------


(cherry picked from commit 44b7adc)

Signed-off-by: xinyual <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent de2e2d7 commit eeb0d89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/opensearch/agent/tools/PPLTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,9 @@ private String parseOutput(String llmOutput, String indexName) {
throw new IllegalArgumentException("The returned PPL: " + llmOutput + " has wrong format");
}
}
ppl = ppl.replace("`", "");
if (this.pplModelType != PPLModelType.FINETUNE) {
ppl = ppl.replace("`", "");
}
ppl = ppl.replaceAll("\\bSPAN\\(", "span(");
if (this.head > 0) {
String[] lists = llmOutput.split("\\|");
Expand Down

0 comments on commit eeb0d89

Please sign in to comment.