@@ -54,7 +54,6 @@ def __init__(self, app: FastAPI, queue_lock: Lock):
54
54
self .app .add_api_route ("/sdapi/v1/options" , self .get_config , methods = ["GET" ], response_model = OptionsModel )
55
55
self .app .add_api_route ("/sdapi/v1/options" , self .set_config , methods = ["POST" ])
56
56
self .app .add_api_route ("/sdapi/v1/cmd-flags" , self .get_cmd_flags , methods = ["GET" ], response_model = FlagsModel )
57
- self .app .add_api_route ("/sdapi/v1/info" , self .get_info , methods = ["GET" ])
58
57
self .app .add_api_route ("/sdapi/v1/samplers" , self .get_samplers , methods = ["GET" ], response_model = List [SamplerItem ])
59
58
self .app .add_api_route ("/sdapi/v1/upscalers" , self .get_upscalers , methods = ["GET" ], response_model = List [UpscalerItem ])
60
59
self .app .add_api_route ("/sdapi/v1/sd-models" , self .get_sd_models , methods = ["GET" ], response_model = List [SDModelItem ])
@@ -229,17 +228,6 @@ def set_config(self, req: OptionsModel):
229
228
def get_cmd_flags (self ):
230
229
return vars (shared .cmd_opts )
231
230
232
- def get_info (self ):
233
-
234
- return {
235
- "hypernetworks" : [{"name" : name , "path" : shared .hypernetworks [name ]} for name in shared .hypernetworks ],
236
- "face_restorers" : [{"name" :x .name (), "cmd_dir" : getattr (x , "cmd_dir" , None )} for x in shared .face_restorers ],
237
- "realesrgan_models" :[{"name" :x .name ,"path" :x .data_path , "scale" :x .scale } for x in get_realesrgan_models (None )],
238
- "promp_styles" :[shared .prompt_styles .styles [k ] for k in shared .prompt_styles .styles ],
239
- "artists_categories" : shared .artist_db .cats ,
240
- # "artists": [{"name":x[0], "score":x[1], "category":x[2]} for x in shared.artist_db.artists]
241
- }
242
-
243
231
def get_samplers (self ):
244
232
return [{"name" :sampler [0 ], "aliases" :sampler [2 ], "options" :sampler [3 ]} for sampler in all_samplers ]
245
233
0 commit comments