mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Remove unneeded error
This commit is contained in:
@ -78,13 +78,6 @@ function registerChatParticipant(context: vscode.ExtensionContext) {
|
||||
throw new Error('Got invalid tool choice: ' + part.name);
|
||||
}
|
||||
|
||||
let parameters: any;
|
||||
try {
|
||||
parameters = part.parameters;
|
||||
} catch (err) {
|
||||
throw new Error(`Got invalid tool use parameters: "${part.parameters}". (${(err as Error).message})`);
|
||||
}
|
||||
|
||||
// TODO support prompt-tsx here
|
||||
const requestedContentType = 'text/plain';
|
||||
toolCalls.push({
|
||||
|
||||
Reference in New Issue
Block a user