feat: enhance OpenRouter enterprise support with new settings and response handling

This commit is contained in:
CaIon
2025-09-28 15:23:27 +08:00
parent 4bbd59c740
commit 6682842cbb
5 changed files with 78 additions and 3 deletions
+8
View File
@@ -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
}