config: add TokenURL, ClientID, ClientSecret to ModelConfig for config command

Made-with: Cursor
This commit is contained in:
YS Liu 2026-02-26 14:54:28 +08:00
parent 0e8cae377c
commit 59e196e3ee

View file

@ -403,6 +403,11 @@ type ModelConfig struct {
ConnectMode string `json:"connect_mode,omitempty"` // Connection mode: stdio, grpc
Workspace string `json:"workspace,omitempty"` // Workspace path for CLI-based providers
// OAuth / client credentials (e.g. LiteLLM + Keycloak)
TokenURL string `json:"token_url,omitempty"`
ClientID string `json:"client_id,omitempty"`
ClientSecret string `json:"client_secret,omitempty"`
// Optional optimizations
RPM int `json:"rpm,omitempty"` // Requests per minute limit
MaxTokensField string `json:"max_tokens_field,omitempty"` // Field name for max tokens (e.g., "max_completion_tokens")