add GPT 5.5 model

This commit is contained in:
decolua
2026-04-24 09:51:05 +07:00
parent f2e7a98ce0
commit 5abc9e5c74
4 changed files with 19 additions and 2 deletions
+12
View File
@@ -66,6 +66,18 @@ export function cloakClaudeTools(body) {
};
}
// Decloak tool_use names in non-streaming Claude response body (INPUT side)
export function decloakToolNames(body, toolNameMap) {
if (!toolNameMap?.size || !Array.isArray(body?.content)) return body;
const content = body.content.map(block => {
if (block?.type === "tool_use" && toolNameMap.has(block.name)) {
return { ...block, name: toolNameMap.get(block.name) };
}
return block;
});
return { ...body, content };
}
// CC decoy tools — Claude Code native tool names, marked unavailable
const CC_DECOY_TOOLS = [
{ name: "Task", description: "This tool is currently unavailable.", input_schema: { type: "object", properties: {} } },