mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 02:47:45 +08:00
Merge remote-tracking branch 'origin/pr/605'
This commit is contained in:
@@ -1362,12 +1362,18 @@ fn build_json_whitespace_heartbeat_stream(
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn build_openai_image_sync_json_whitespace_heartbeat_stream(
|
||||
pub(crate) fn build_sync_json_whitespace_heartbeat_stream(
|
||||
rx: mpsc::Receiver<Result<Bytes, IoError>>,
|
||||
) -> impl futures_util::Stream<Item = Result<Bytes, IoError>> + Send + 'static {
|
||||
build_json_whitespace_heartbeat_stream(rx, OPENAI_IMAGE_SYNC_JSON_HEARTBEAT_INTERVAL, None)
|
||||
}
|
||||
|
||||
pub(crate) fn build_openai_image_sync_json_whitespace_heartbeat_stream(
|
||||
rx: mpsc::Receiver<Result<Bytes, IoError>>,
|
||||
) -> impl futures_util::Stream<Item = Result<Bytes, IoError>> + Send + 'static {
|
||||
build_sync_json_whitespace_heartbeat_stream(rx)
|
||||
}
|
||||
|
||||
async fn openai_image_sync_json_heartbeat_final_bytes(
|
||||
result: Result<Option<Response<Body>>, GatewayError>,
|
||||
) -> Vec<u8> {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
mod execution;
|
||||
|
||||
pub(crate) use execution::{
|
||||
build_openai_image_sync_json_whitespace_heartbeat_stream, execute_execution_runtime_sync,
|
||||
build_openai_image_sync_json_whitespace_heartbeat_stream,
|
||||
build_sync_json_whitespace_heartbeat_stream, execute_execution_runtime_sync,
|
||||
};
|
||||
|
||||
#[allow(unused_imports)]
|
||||
|
||||
Reference in New Issue
Block a user