This commit is contained in:
Brandon Thomas committed 2026-03-28 12:30:16 -04:00
1 parent 7fffb055dd
commit b97332afba
2 files changed
+1 -6

No files matched your search

@@ -9,7 +9,7 @@ pub const OMNI_GEN_IMAGE_MODELS: Lazy<Vec<OmniGenImageProviderModels>> = Lazy::n
build_omni_gen_image_models()
});
pub fn build_omni_gen_image_models() -> Vec<OmniGenImageProviderModels> {
fn build_omni_gen_image_models() -> Vec<OmniGenImageProviderModels> {
let mut models = Vec::new();
models.push(OmniGenImageProviderModels {
@@ -27,12 +27,7 @@ pub async fn omni_gen_image_models_handler(
_query: Query<OmniGenImageModelsQuery>,
_server_state: web::Data<Arc<ServerState>>,
) -> Result<Json<OmniGenImageModelsResponse>, CommonWebError> {
info!("Handling request for Omni Gen image models");
let providers = (*OMNI_GEN_IMAGE_MODELS).clone();
info!("Cloning providers...");
Ok(Json(OmniGenImageModelsResponse {
success: true,
providers,