Skip to content

Commit

Permalink
Fix boolean parse (#157)
Browse files Browse the repository at this point in the history
* fix boolean parse

Signed-off-by: xinyual <[email protected]>

* fix boolean parse

Signed-off-by: xinyual <[email protected]>

---------

Signed-off-by: xinyual <[email protected]>
  • Loading branch information
xinyual committed Jan 30, 2024
1 parent 1626af1 commit b822912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/opensearch/agent/tools/PPLTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public PPLTool create(Map<String, Object> map) {
(String) map.get("model_id"),
(String) map.getOrDefault("prompt", ""),
(String) map.getOrDefault("model_type", ""),
(boolean) map.getOrDefault("execute", true)
Boolean.valueOf((String) map.getOrDefault("execute", "true"))
);
}

Expand Down

0 comments on commit b822912

Please sign in to comment.