Remove unneeded error

This commit is contained in:
Rob Lourens
2024-10-12 15:34:04 -07:00
parent d3e0eea50b
commit 1325c81b38

View File

@ -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({