Skip to content

Model call failed: {"message":"Invalid 'messages[21].tool_calls': array too long. Expected an array with maximum length 128, but got an array with length 131 instead. #669

@hypntzed78

Description

@hypntzed78

Describe the bug

request: Check for env vars obtained with os.getenv() in config.py that do not already exist in the .env.example file, then add to .env.example with the default value from config.py

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an
array with length 131 instead.","code":"invalid_request_body"}
(Request ID: 77CE:1ED574:486654:5C7E04:6927BD36)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an
array with length 131 instead.","code":"invalid_request_body"}
(Request ID: 77DA:1F6E06:4509FA:592E68:6927BD3D)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an
array with length 131 instead.","code":"invalid_request_body"}
(Request ID: 9D32:9825:E5BD15:11C9983:6927BD47)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an
array with length 131 instead.","code":"invalid_request_body"}
(Request ID: DDD0:233BC:D6525A:10D84E9:6927BD52)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an
array with length 131 instead.","code":"invalid_request_body"}
(Request ID: EBC2:24E96A:DC7C64:1137A30:6927BD61)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an
array with length 131 instead.","code":"invalid_request_body"}
(Request ID: 905C:A2069:DA79F9:111A2D8:6927BD7C)

✘ Execution failed: Failed to get response from the AI model; retried 5
times (total retry wait time: 98.48922082639119 seconds)

Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions