We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23e1257 commit b3c9af4Copy full SHA for b3c9af4
1 file changed
src/services/api/openai/index.ts
@@ -47,6 +47,14 @@ import {
47
TOOL_SEARCH_TOOL_NAME,
48
} from '@claude-code-best/builtin-tools/tools/ToolSearchTool/prompt.js'
49
50
+/**
51
+ * Mirrors the Anthropic request path's deferred-tool announcement for OpenAI.
52
+ *
53
+ * OpenAI-compatible endpoints cannot consume Anthropic's `defer_loading` or
54
+ * `tool_reference` beta payloads directly, so the model needs the same textual
55
+ * list of deferred MCP tool names that Anthropic receives before it can ask
56
+ * ToolSearchTool to load their full schemas.
57
+ */
58
function prependDeferredToolListIfNeeded(
59
messages: Message[],
60
tools: Tools,
0 commit comments