Add a concurrency limit to Process.ProxyRequest (#123)

This commit is contained in:
Benson Wong
2025-05-12 18:12:52 -07:00
committed by GitHub
parent cb876c143b
commit 9dc4bcb46c
3 changed files with 55 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ type ModelConfig struct {
UnloadAfter int `yaml:"ttl"`
Unlisted bool `yaml:"unlisted"`
UseModelName string `yaml:"useModelName"`
// Limit concurrency of HTTP requests to process
ConcurrencyLimit int `yaml:"concurrencyLimit"`
}
func (m *ModelConfig) SanitizedCommand() ([]string, error) {