mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 23:57:11 -04:00
[GH-ISSUE #313] [Bug]: Tool call calling issue in combination with llama.cpp backend #100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SebastianGode on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/313
Originally assigned to: @asdek on GitHub.
Affected Component
AI Agents (Researcher/Developer/...)
Describe the bug
When trying to run a simple test a few calls work and afterwards there's no response anymore in the UI to new questions:
Inside the log I get the following:
pentagi | time="2026-05-13T11:26:02Z" level=error msg="failed to perform assistant agent chain" error="failed to call agent chain: max retries reached, 3: API returned unexpected status code: 500: litellm.InternalServerError: InternalServerError: Custom_openaiException - Failed to parse tool call arguments as JSON: [json.exception.parse_error.101] parse error at line 1, column 131: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal. Received Model Group=qwen3.6-35b\nAvailable Model Group Fallbacks=None\nAPI returned unexpected status code: 500: litellm.InternalServerError: InternalServerError: Custom_openaiException - Failed to parse tool call arguments as JSON: [json.exception.parse_error.101] parse error at line 1, column 131: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal. Received Model Group=qwen3.6-35b\nAvailable Model Group Fallbacks=None\nAPI returned unexpected status code: 500: litellm.InternalServerError: InternalServerError: Custom_openaiException - Failed to parse tool call arguments as JSON: [json.exception.parse_error.101] parse error at line 1, column 131: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal. Received Model Group=qwen3.6-35b\nAvailable Model Group Fallbacks=None\nfailed to perform caller reflector: failed to call agent chain: max retries reached, 3: API returned unexpected status code: 429: No deployments available for selected model, Try again in 30 seconds.The llama.cpp servers also show the following:
Steps to Reproduce
System Configuration
Docker compose deployment with latest version, 3vCPU, 6GB RAM. LiteLLM Backend with llama.cpp as inference engines.
Logs and Artifacts
No response
Screenshots or Recordings
No response
Verification
@asdek commented on GitHub (May 29, 2026):
hey @SebastianGode
thank you for the feedback, it was fixed in the latest build, please update your installation.
it happens due to wrong previous response from llm side and while we are trying to fix it, was sending it with corrupted tool call args, now we are sanitizing wrong function arguments.