[router] Function call support for openai router Responses API (#12386)

This commit is contained in:
Keyang Ru
2025-10-30 12:45:10 -07:00
committed by GitHub
parent 7cd716f776
commit 4d2f17bd0b
10 changed files with 144 additions and 31 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ pub fn make_item_id(item_type: &str) -> ConversationItemId {
"reasoning" => "rs".to_string(),
"mcp_call" => "mcp".to_string(),
"mcp_list_tools" => "mcpl".to_string(),
"function_tool_call" => "ftc".to_string(),
"function_call" => "fc".to_string(),
other => {
// Fallback: first 3 letters of type or "itm"
let mut p = other.chars().take(3).collect::<String>();