From bcc5483ed75b2fa6f18a8b98b724962dae17cc3d Mon Sep 17 00:00:00 2001 From: Simo Lin Date: Wed, 10 Dec 2025 15:36:42 -0800 Subject: [PATCH] [model-gateway] fix import order in oai conversation (#14851) --- sgl-model-gateway/src/routers/openai/conversations.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sgl-model-gateway/src/routers/openai/conversations.rs b/sgl-model-gateway/src/routers/openai/conversations.rs index 8993c1116..293ed6cf2 100644 --- a/sgl-model-gateway/src/routers/openai/conversations.rs +++ b/sgl-model-gateway/src/routers/openai/conversations.rs @@ -19,9 +19,10 @@ use crate::{ ConversationId, ConversationItemId, ConversationItemStorage, ConversationStorage, NewConversationItem, ResponseId, ResponseStorage, }, - protocols::responses::{generate_id, ResponseInput, ResponsesRequest}, + protocols::responses::{ + generate_id, ResponseInput, ResponseInputOutputItem, ResponsesRequest, StringOrContentParts, + }, }; - /// Persist conversation items to storage /// /// This function: @@ -110,8 +111,6 @@ pub async fn persist_conversation_items( /// Extract and normalize input items from ResponseInput fn extract_input_items(input: &ResponseInput) -> Result, String> { - use crate::protocols::responses::{ResponseInputOutputItem, StringOrContentParts}; - let items = match input { ResponseInput::Text(text) => { // Convert simple text to message item