Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLM Client call error (Run ID: codestoryai_aide_issue_1319_e513ad53) #1320

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,6 +736,11 @@ export class AideAgentSessionProvider implements vscode.AideSessionParticipant {
responseStream.stream.toolTypeError({
message: `Usage limit exceeded. Please upgrade.`
});
} else if (error_string.includes('Event stream error: Transport error: error decoding response body')) {
responseStream.stream.stage({ message: 'Error' });
responseStream.stream.toolTypeError({
message: `There was an error processing the response from the LLM. We'd appreciate it if you could report this session using the feedback tool above - this is on us. Please try again.`
});
} 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.`
Expand Down Expand Up @@ -1006,4 +1011,4 @@ function printEventDebug(event: SideCarAgentEvent) {
console.info('[debug events]', eventType, value);
}
}
}
}