Merge pull request #1120 from neotf/feat-04

feat: enhance token usage details for upstream OpenRouter
This commit is contained in:
Calcium-Ion
2025-06-22 01:10:49 +08:00
committed by GitHub
5 changed files with 47 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ type GeneralOpenAIRequest struct {
ExtraBody json.RawMessage `json:"extra_body,omitempty"`
WebSearchOptions *WebSearchOptions `json:"web_search_options,omitempty"`
// OpenRouter Params
Usage json.RawMessage `json:"usage,omitempty"`
Reasoning json.RawMessage `json:"reasoning,omitempty"`
// Ali Qwen Params
VlHighResolutionImages json.RawMessage `json:"vl_high_resolution_images,omitempty"`