server : add props.model_alias (#16943)
* server : add props.model_alias * webui : npm run format
This commit is contained in:
parent
622cd010ff
commit
48bd26501b
3 changed files with 4 additions and 0 deletions
|
|
@ -99,6 +99,9 @@ class ServerStore {
|
|||
}
|
||||
|
||||
get modelName(): string | null {
|
||||
if (this._serverProps?.model_alias) {
|
||||
return this._serverProps.model_alias;
|
||||
}
|
||||
if (!this._serverProps?.model_path) return null;
|
||||
return this._serverProps.model_path.split(/(\\|\/)/).pop() || null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue