feat: 添加 openrouter-enterprise 支持

This commit is contained in:
creamlike1024 committed 2025-09-28 09:35:07 +08:00
1 parent 4bbd59c740
commit 9fe5f9dd7a
2 files changed
+21 -1

No files matched your search

+7
View File
@@ -1,5 +1,7 @@
package openrouter
import "encoding/json"
type RequestReasoning struct {
// One of the following (not both):
Effort string `json:"effort,omitempty"` // Can be "high", "medium", or "low" (OpenAI-style)
@@ -7,3 +9,8 @@ type RequestReasoning struct {
// Optional: Default is false. All models support this.
Exclude bool `json:"exclude,omitempty"` // Set to true to exclude reasoning tokens from response
}
type OpenRouterEnterpriseResponse struct {
Data json.RawMessage `json:"data"`
Success bool `json:"success"`
}