Skip to content

Commit

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



* fix boolean parse



---------


(cherry picked from commit b822912)

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 53932eb commit 7ac1fb5
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 @@ -261,7 +261,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 7ac1fb5

Please sign in to comment.