Remove tool calling for Cohere v1

This commit is contained in:
Cohee
2024-10-04 02:11:46 +03:00
parent 01f03dbf50
commit 559f1b81f7
3 changed files with 1 additions and 93 deletions

View File

@ -461,19 +461,6 @@ export class ToolManager {
}
*/
/*
if ([chat_completion_sources.COHERE].includes(oai_settings.chat_completion_source)) {
if (!Array.isArray(data?.tool_calls)) {
return;
}
for (const toolCall of data.tool_calls) {
const args = { name: toolCall.name, arguments: JSON.stringify(toolCall.parameters) };
console.log('Function tool call:', toolCall);
}
}
*/
return result;
}