Skip to content

Tools without parameters cause AttributeError in LiteLLM integration #2776

@ar0it

Description

@ar0it

Tools without parameters cause an AttributeError in the LiteLLM integration's _function_declaration_to_tool_param() function because it tries to access function_declaration.parameters.required when parameters is None.

The fix is to add a null check: if function_declaration.parameters and function_declaration.parameters.required:

Metadata

Metadata

Assignees

Labels

models[Component] Issues related to model support

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions