mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-26 22:30:11 +00:00
* refactor(decisions): rename the evaluation model mode to decisions Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(decisions): canonicalize the health check mode without rebinding Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(decisions): replace canonical_model_mode with is_decisions_model_mode Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(decisions): preserve evaluation mode compatibility Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * chore: drop the rebuilt dashboard bundle from this PR Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * style(dashboard): format decision mode helper Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: kerry <kerry@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
67 lines
1.6 KiB
Rust
67 lines
1.6 KiB
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
/// Primary API surface / task type of the model.
|
|
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
|
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum Mode {
|
|
AudioSpeech,
|
|
AudioTranscription,
|
|
Chat,
|
|
Completion,
|
|
Decisions,
|
|
Embedding,
|
|
Evaluation,
|
|
Guardrail,
|
|
ImageEdit,
|
|
ImageGeneration,
|
|
Moderation,
|
|
Ocr,
|
|
Realtime,
|
|
Rerank,
|
|
Responses,
|
|
Search,
|
|
VectorStore,
|
|
VideoGeneration,
|
|
}
|
|
|
|
/// Gemini audio generation API the model is served through.
|
|
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
|
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum VertexAiAudioApi {
|
|
LyriaPredict,
|
|
LyriaInteractions,
|
|
}
|
|
|
|
/// Audio container format the model can return.
|
|
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
|
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum AudioFormat {
|
|
Mp3,
|
|
Wav,
|
|
}
|
|
|
|
/// Input modality the model accepts.
|
|
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
|
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum InputModality {
|
|
Text,
|
|
Image,
|
|
Audio,
|
|
Video,
|
|
}
|
|
|
|
/// Output modality the model can produce.
|
|
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
|
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum OutputModality {
|
|
Text,
|
|
Image,
|
|
Audio,
|
|
Video,
|
|
Code,
|
|
}
|