From 44afe14b412aac3c6e49f5108bc44ec87bdc5c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ulises=20Ni=C3=B1o=20Rivera?= Date: Wed, 20 Nov 2024 13:24:41 -0800 Subject: [PATCH] updatE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Ulises Niño Rivera --- crates/prompt_gateway/src/http_context.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/prompt_gateway/src/http_context.rs b/crates/prompt_gateway/src/http_context.rs index aef5b491..b3ce7d8f 100644 --- a/crates/prompt_gateway/src/http_context.rs +++ b/crates/prompt_gateway/src/http_context.rs @@ -1,8 +1,4 @@ -use std::{ - collections::HashMap, - time::{Duration, SystemTime, UNIX_EPOCH}, -}; - +use crate::stream_context::{ResponseHandlerType, StreamCallContext, StreamContext}; use common::{ common_types::{ open_ai::{ @@ -23,8 +19,10 @@ use http::StatusCode; use log::{debug, trace, warn}; use proxy_wasm::{traits::HttpContext, types::Action}; use serde_json::Value; - -use crate::stream_context::{ResponseHandlerType, StreamCallContext, StreamContext}; +use std::{ + collections::HashMap, + time::{Duration, SystemTime, UNIX_EPOCH}, +}; // HttpContext is the trait that allows the Rust code to interact with HTTP objects. impl HttpContext for StreamContext {