-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
nextcloud/server
#57004Labels
Description
Which version of assistant are you using?
2.10.0
Which version of Nextcloud are you using?
32.0.2
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
chromium
Describe the Bug
Hi there,
While using agent, i've come across text too long error after a few messages and tool invocations.
The problem can be fixed by changing the following 64000 to a higher value (maybe higher than a million):
lib/public/TaskProcessing/EshapeType.php L85:
* @since 30.0.0
*/
public function validateInput(mixed $value): void {
$this->validateNonFileType($value);
if ($this === EShapeType::Text && is_string($value) && strlen($value) > 64_000) {
throw new ValidationException('Text is too long');
best,
evrim.
Expected Behavior
Run without error.
To Reproduce
Use agent with tool invocations with multiple messges.