Add name and description to v1/models list (#179)

* Add support for name and description in v1/models list
* add configuration example for name and description
This commit is contained in:
Benson Wong
2025-06-30 23:02:44 -07:00
committed by GitHub
parent 3bd1b23ce0
commit c867a6c9a2
5 changed files with 73 additions and 17 deletions

View File

@@ -28,6 +28,10 @@ type ModelConfig struct {
Unlisted bool `yaml:"unlisted"`
UseModelName string `yaml:"useModelName"`
// #179 for /v1/models
Name string `yaml:"name"`
Description string `yaml:"description"`
// Limit concurrency of HTTP requests to process
ConcurrencyLimit int `yaml:"concurrencyLimit"`
@@ -48,6 +52,8 @@ func (m *ModelConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
Unlisted: false,
UseModelName: "",
ConcurrencyLimit: 0,
Name: "",
Description: "",
}
// the default cmdStop to taskkill /f /t /pid ${PID}