pub struct MtmdCapabilities {
pub chat: bool,
pub vision: bool,
pub audio: bool,
pub video: bool,
pub audio_stream: bool,
pub text_gen: bool,
pub audio_gen: bool,
pub audio_gen_spk_ref: bool,
}Expand description
What a model and projector pair can take in and produce.
From mtmd_helper_get_capabilities. The three input flags answer “what can
I feed this?”; the three output flags answer “what will it give me back?” —
a text-to-speech model, for example, reports text_gen: false and
audio_gen: true, which no earlier predicate could express.
Fields§
§chat: boolUsable for chat. false for tts-only models (no chat template) and for
realtime transcription models.
vision: boolAccepts image input.
audio: boolAccepts audio input.
video: boolAccepts video input. Also depends on the MTMD_VIDEO build option, and
on ffmpeg/ffprobe at runtime — see MtmdVideo.
audio_stream: boolSupports realtime transcription through llama.cpp’s
mtmd_audio_stream_* API, which this crate does not wrap yet — reach
for llama-cpp-sys-4 directly if you need it.
text_gen: boolGenerates text. false for an audio-only model.
audio_gen: boolGenerates audio.
audio_gen_spk_ref: boolAccepts a speaker reference clip for voice cloning.