Skip to content

[Bug]: Router breaks in 1.80.8 if tools is None #17672

@sidnarayanan

Description

@sidnarayanan

What happened?

I unfortunately don't have a minimal repro for this, but version 1.80.8 has introduced an error when request_kwargs['tools'] is None (specifically in #17500 ).

A fix would be for this line to instead use request_kwargs.get('tools') or []:

tools = request_kwargs.get("tools", [])

Relevant log output

Are you a ML Ops Team?

Yes

What LiteLLM version are you on ?

v1.80.8

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions