feat: support request_header key source (#4903)

* feat: support request_header key source in backend and settings UI

* feat: support request_header channel affinity source
This commit is contained in:
Seefs authored and GitHub committed 2026-05-17 11:44:38 +08:00
1 parent 2d968c3eab
commit 68830e6097
6 files changed
+81 -6

No files matched your search

@@ -3,7 +3,7 @@ package operation_setting
import "github.com/QuantumNous/new-api/setting/config"
type ChannelAffinityKeySource struct {
Type string `json:"type"` // context_int, context_string, gjson
Type string `json:"type"` // context_int, context_string, request_header, gjson
Key string `json:"key,omitempty"`
Path string `json:"path,omitempty"`
}