Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/tools/calc.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ text:
model: replicate/ibm-granite/granite-3.1-8b-instruct
parser: json
spec: [{ name: str, arguments: { expr: str }}]
parameters:
drop_params: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
drop_params: true
# By default, LiteLLM raises an exception if an openai param being passed in isn't supported.
# Instead, ignore the param. See https://docs.litellm.ai/docs/completion/drop_params
drop_params: true

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is too general wrt to what is happening here...

- "\n"
- if: ${ actions[0].name == "calc" }
then:
Expand Down