feat: update item streaming and binary check parameters
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -465,7 +465,22 @@ async fn stream_item_content_response_with_metadata(
|
|||||||
|
|
||||||
if stream {
|
if stream {
|
||||||
debug!("STREAMING: Using streaming approach");
|
debug!("STREAMING: Using streaming approach");
|
||||||
match item_service.stream_item_content_by_id_with_metadata(item_id, metadata, true, offset, length).await {
|
match item_service.stream_item_content_by_id_with_metadata(
|
||||||
|
item_id,
|
||||||
|
metadata,
|
||||||
|
true,
|
||||||
|
offset,
|
||||||
|
length,
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
None
|
||||||
|
).await {
|
||||||
Ok((stream, _)) => {
|
Ok((stream, _)) => {
|
||||||
let body = axum::body::Body::from_stream(stream);
|
let body = axum::body::Body::from_stream(stream);
|
||||||
let response = Response::builder()
|
let response = Response::builder()
|
||||||
|
|||||||
@@ -213,7 +213,8 @@ impl AsyncItemService {
|
|||||||
tail_words,
|
tail_words,
|
||||||
tail_lines,
|
tail_lines,
|
||||||
line_start,
|
line_start,
|
||||||
line_end
|
line_end,
|
||||||
|
None
|
||||||
).await?;
|
).await?;
|
||||||
is_binary
|
is_binary
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user