This commit is contained in:
Slavi Pantaleev
2025-05-10 11:47:50 +03:00
parent 231528a0d8
commit a84135ff32
30 changed files with 214 additions and 174 deletions

View File

@@ -33,8 +33,7 @@ pub struct ImageGenerationResult {
}
#[derive(Default)]
pub struct ImageEditParams {
}
pub struct ImageEditParams {}
pub struct ImageEditResult {
pub bytes: Vec<u8>,
@@ -49,7 +48,11 @@ pub struct ImageSource {
impl ImageSource {
pub fn new(filename: String, bytes: Vec<u8>, mime_type: mime::Mime) -> Self {
Self { filename, bytes, mime_type }
Self {
filename,
bytes,
mime_type,
}
}
}

View File

@@ -6,7 +6,9 @@ mod text_generation;
mod text_to_speech;
pub use agent_provider::{AgentProvider, AgentProviderInfo};
pub use image::{ImageGenerationParams, ImageGenerationResult, ImageEditParams, ImageEditResult, ImageSource};
pub use image::{
ImageEditParams, ImageEditResult, ImageGenerationParams, ImageGenerationResult, ImageSource,
};
pub use ping::PingResult;
pub use speech_to_text::{SpeechToTextParams, SpeechToTextResult};
pub use text_generation::{