mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 14:22:09 +03:00
refactor: trim function name consistently in Responses-to-Chat direction
Addresses PR review: both translation directions now trim the function name the same way, matching the Chat-to-Responses pattern.
This commit is contained in:
@@ -121,8 +121,8 @@ export function openaiResponsesToOpenAIRequest(
|
||||
|
||||
if (itemType === "function_call") {
|
||||
// Skip tool calls with empty names to avoid infinite placeholder_tool loops
|
||||
const fnName = toString(item.name);
|
||||
if (!fnName || !fnName.trim()) {
|
||||
const fnName = toString(item.name).trim();
|
||||
if (!fnName) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user