mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 03:47:26 +00:00
Merge branch 'main-upstream' into fix/volcengine_default_baseurl
# Conflicts: # main.go
This commit is contained in:
@@ -19,4 +19,12 @@ const (
|
||||
type ChannelOtherSettings struct {
|
||||
AzureResponsesVersion string `json:"azure_responses_version,omitempty"`
|
||||
VertexKeyType VertexKeyType `json:"vertex_key_type,omitempty"` // "json" or "api_key"
|
||||
OpenRouterEnterprise *bool `json:"openrouter_enterprise,omitempty"`
|
||||
}
|
||||
|
||||
func (s *ChannelOtherSettings) IsOpenRouterEnterprise() bool {
|
||||
if s == nil || s.OpenRouterEnterprise == nil {
|
||||
return false
|
||||
}
|
||||
return *s.OpenRouterEnterprise
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user