mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-25 01:02:15 +00:00
fix(mcp): keep the string guard on tools/list next_cursor
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
c54de1630e
commit
28a1ac20d3
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ async def list_tools_with_pagination(
|
|||
tools.extend(result.tools)
|
||||
|
||||
next_cursor = result.next_cursor
|
||||
if not next_cursor:
|
||||
if not isinstance(next_cursor, str) or not next_cursor:
|
||||
return tools
|
||||
if next_cursor in seen_cursors:
|
||||
verbose_logger.warning(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue