Merge pull request #421 from contributor branch

This commit is contained in:
diegosouzapw
2026-03-17 08:14:01 -03:00
@@ -91,6 +91,10 @@ export function filterToOpenAIFormat(body) {
delete body.tools;
}
// Strip Claude-specific fields that OpenAI-compatible providers reject
delete body.metadata;
delete body.anthropic_version;
// Normalize tools to OpenAI format (from Claude, Gemini, etc.)
if (body.tools && Array.isArray(body.tools) && body.tools.length > 0) {
body.tools = body.tools