fix: detect Claude format for /v1/messages + sanitize tool descriptions (#397)
This commit is contained in:
4 files changed
+8
-5
No files matched your search
@@ -59,7 +59,7 @@ export function claudeToOpenAIRequest(model, body, stream) {
|
||||
type: "function",
|
||||
function: {
|
||||
name: tool.name,
|
||||
description: tool.description,
|
||||
description: String(tool.description || ""),
|
||||
parameters: tool.input_schema || { type: "object", properties: {} }
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user