Skip to content

Commit e6f079e

Browse files
author
root
committed
Fix Send bound for streaming transform
1 parent deadb98 commit e6f079e

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/proxy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ async fn build_proxy_response(
436436
request_expects_stream: bool,
437437
moderation_debug: &HeaderMap,
438438
) -> Result<Response, ApiError> {
439-
let status = upstream_response.status();
440439
let headers = filtered_response_headers(upstream_response.headers());
441440
let header_says_stream = is_stream_response(upstream_response.headers());
442441
if header_says_stream || request_expects_stream {

src/streaming.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ enum InternalEvent {
5252
Done,
5353
}
5454

55-
trait InternalSink {
55+
trait InternalSink: Send {
5656
fn on_start(&mut self, meta: &Map<String, Value>) -> Vec<Vec<u8>>;
5757
fn on_text_delta(&mut self, text: &str) -> Vec<Vec<u8>>;
5858
fn on_tool_call_start(&mut self, call_id: &str, name: &str) -> Vec<Vec<u8>>;

0 commit comments

Comments
 (0)