Skip to content

Commit

Permalink
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>
Signed-off-by: yuye-aws <[email protected]>
  • Loading branch information
2 people authored and yuye-aws committed Apr 26, 2024
1 parent 7a074f3 commit 0f835c2
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 0f835c2

Please sign in to comment.