Skip to content

Commit

Permalink
(PPLTool) update claude and openai prompts (#184)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 authored Feb 7, 2024
1 parent df90be3 commit e001987
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/opensearch/agent/tools/PPLTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public class PPLTool implements Tool {

public enum PPLModelType {
CLAUDE,
FINETUNE;
FINETUNE,
OPENAI;

public static PPLModelType from(String value) {
if (value.isEmpty()) {
Expand All @@ -139,7 +140,7 @@ public static PPLModelType from(String value) {
try {
return PPLModelType.valueOf(value.toUpperCase(Locale.ROOT));
} catch (Exception e) {
log.error("Wrong PPL Model type, should be CLAUDE or FINETUNE");
log.error("Wrong PPL Model type, should be CLAUDE, FINETUNE, or OPENAI");
return PPLModelType.CLAUDE;
}
}
Expand Down
Loading

0 comments on commit e001987

Please sign in to comment.