Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

The LLM that you're using right now returned a response that does not adhere to the format our framework expects, and thus this request has failed. If you keep seeing this error, this is likely because the LLM is unable to follow our system instructions an (Run ID: codestoryai_aide_issue_1329_b2bda857) #1330

Open
wants to merge 1 commit into
base: cs-main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,15 @@ export class AideAgentSessionProvider implements vscode.AideSessionParticipant {
responseStream.stream.toolTypeError({
message: `Usage limit exceeded. Please upgrade.`
});
} else if (error_string === 'wrong tool output') {
responseStream.stream.toolTypeError({
message: LLM_FORMAT_ERROR_MESSAGE
});
responseStream.stream.stage({ message: 'Error' });
errorCallback?.();
} else {
responseStream.stream.toolTypeError({
message: `The LLM that you're using right now returned a response that does not adhere to the format our framework expects, and thus this request has failed. If you keep seeing this error, this is likely because the LLM is unable to follow our system instructions and it is recommended to switch over to one of our recommended models instead.`
message: LLM_FORMAT_ERROR_MESSAGE
});
responseStream.stream.stage({ message: 'Error' });
errorCallback?.();
Expand Down Expand Up @@ -949,7 +955,7 @@ export class AideAgentSessionProvider implements vscode.AideSessionParticipant {
}

responseStream.stream.toolTypeError({
message: `${error.message}. Please try again.`
message: error instanceof SidecarConnectionFailedError ? error.message : LLM_FORMAT_ERROR_MESSAGE
});
responseStream.stream.stage({ message: 'Error' });
errorCallback?.();
Expand Down Expand Up @@ -1006,4 +1012,4 @@ function printEventDebug(event: SideCarAgentEvent) {
console.info('[debug events]', eventType, value);
}
}
}
}