Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion crates/rig-core/src/providers/minimax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ use crate::providers::anthropic::client::{
AnthropicBuilder as AnthropicCompatBuilder, AnthropicKey, finish_anthropic_builder,
};

#[cfg(feature = "image")]
pub mod image_generation;

#[cfg(feature = "image")]
pub use image_generation::{IMAGE_01, IMAGE_01_LIVE, ImageGenerationModel};

/// Global OpenAI-compatible base URL.
pub const GLOBAL_API_BASE_URL: &str = "https://api.minimax.io/v1";
/// China OpenAI-compatible base URL.
Expand Down Expand Up @@ -96,7 +102,7 @@ impl<H> Capabilities<H> for MiniMaxExt {
type Transcription = Nothing;
type ModelListing = Nothing;
#[cfg(feature = "image")]
type ImageGeneration = Nothing;
type ImageGeneration = Capable<ImageGenerationModel<H>>;
#[cfg(feature = "audio")]
type AudioGeneration = Nothing;
type Rerank = Nothing;
Expand Down
Loading