Add /v1/internal/model-info endpoint
This commit is contained in:
parent
6e2e0317af
commit
f6ca9cfcdc
3 changed files with 19 additions and 0 deletions
|
@ -7,6 +7,13 @@ from modules.models_settings import get_model_metadata, update_model_parameters
|
|||
from modules.utils import get_available_models
|
||||
|
||||
|
||||
def get_current_model_info():
|
||||
return {
|
||||
'model_name': shared.model_name,
|
||||
'lora_names': shared.lora_names
|
||||
}
|
||||
|
||||
|
||||
def get_current_model_list() -> list:
|
||||
return [shared.model_name] # The real chat/completions model, maybe "None"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue