Skip to content

Commit 1778275

Browse files
authored
Propogate schema to anthropic BYOK (#1184)
1 parent 45a473b commit 1778275

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extension/byok/vscode-node/anthropicProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ export class AnthropicLMProvider implements BYOKModelProvider<LanguageModelChatI
137137
input_schema: {
138138
type: 'object',
139139
properties: (tool.inputSchema as { properties?: Record<string, unknown> }).properties ?? {},
140-
required: (tool.inputSchema as { required?: string[] }).required ?? []
140+
required: (tool.inputSchema as { required?: string[] }).required ?? [],
141+
$schema: (tool.inputSchema as { $schema?: unknown }).$schema
141142
}
142143
};
143144
});

0 commit comments

Comments
 (0)