Skip to content

Commit bd583e4

Browse files
committed
some more modified logic
1 parent d02357a commit bd583e4

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

Cargo.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/llm/src/preprocessor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ impl OpenAIPreprocessor {
329329
#[cfg(feature = "media-loading")]
330330
{
331331
if let Some(loader) = &self.media_loader {
332-
let rdma_descriptor = loader.fetch_and_decode_media_part(content_part).await?;
332+
let rdma_descriptor =
333+
loader.fetch_and_decode_media_part(content_part).await?;
333334
map_item.push(MultimodalData::Decoded(rdma_descriptor));
334335
} else {
335336
map_item.push(MultimodalData::Url(url));

lib/llm/src/preprocessor/media/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33

44
#[cfg(feature = "media-loading")]
55
mod common;
6+
#[cfg(feature = "media-loading")]
67
mod decoders;
8+
#[cfg(feature = "media-loading")]
79
mod loader;
10+
#[cfg(feature = "media-loading")]
811
mod rdma;
912
#[cfg(feature = "media-loading")]
1013
pub use common::EncodedMediaData;
@@ -14,4 +17,3 @@ pub use decoders::{Decoder, ImageDecoder, MediaDecoder, VideoDecoder};
1417
pub use loader::MediaLoader;
1518
#[cfg(feature = "media-loading")]
1619
pub use rdma::{DecodedMediaData, RdmaMediaDataDescriptor};
17-

0 commit comments

Comments
 (0)