mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-12 12:53:04 +00:00
cleanup
This commit is contained in:
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 {
|
||||
|
||||
-5
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user