@@ -56,20 +56,20 @@ type updateChannelRequest struct {
5656}
5757
5858type channelModelPricingRequest struct {
59- Platform string `json:"platform" binding:"omitempty,max=50"`
60- Models []string `json:"models" binding:"required,min=1,max=100"`
61- BillingMode string `json:"billing_mode" binding:"omitempty,oneof=token per_request image"`
62- InputPrice * float64 `json:"input_price" binding:"omitempty,min=0"`
63- OutputPrice * float64 `json:"output_price" binding:"omitempty,min=0"`
64- CacheWritePrice * float64 `json:"cache_write_price" binding:"omitempty,min=0"`
65- CacheReadPrice * float64 `json:"cache_read_price" binding:"omitempty,min=0"`
66- ImageInputPrice * float64 `json:"image_input_price" binding:"omitempty,min=0"`
67- ImageCacheReadPrice * float64 `json:"image_cache_read_price" binding:"omitempty,min=0"`
68- ImageOutputPrice * float64 `json:"image_output_price" binding:"omitempty,min=0"`
69- PerRequestPrice * float64 `json:"per_request_price" binding:"omitempty,min=0"`
70- LongContextPricingEnabled * bool `json:"long_context_pricing_enabled"`
71- LongContextInputTokenThreshold * int `json:"long_context_input_token_threshold" binding:"omitempty,min=1,max=2147483647"`
72- Intervals []pricingIntervalRequest `json:"intervals"`
59+ Platform string `json:"platform" binding:"omitempty,max=50"`
60+ Models []string `json:"models" binding:"required,min=1,max=100"`
61+ BillingMode string `json:"billing_mode" binding:"omitempty,oneof=token per_request image"`
62+ InputPrice * float64 `json:"input_price" binding:"omitempty,min=0"`
63+ OutputPrice * float64 `json:"output_price" binding:"omitempty,min=0"`
64+ CacheWritePrice * float64 `json:"cache_write_price" binding:"omitempty,min=0"`
65+ CacheReadPrice * float64 `json:"cache_read_price" binding:"omitempty,min=0"`
66+ ImageInputPrice * float64 `json:"image_input_price" binding:"omitempty,min=0"`
67+ ImageCacheReadPrice * float64 `json:"image_cache_read_price" binding:"omitempty,min=0"`
68+ ImageOutputPrice * float64 `json:"image_output_price" binding:"omitempty,min=0"`
69+ PerRequestPrice * float64 `json:"per_request_price" binding:"omitempty,min=0"`
70+ LongContextPricingEnabled * bool `json:"long_context_pricing_enabled"`
71+ LongContextInputTokenThreshold * int `json:"long_context_input_token_threshold" binding:"omitempty,min=1,max=2147483647"`
72+ Intervals []pricingIntervalRequest `json:"intervals"`
7373 TimeRanges []pricingTimeRangeRequest `json:"time_ranges"`
7474}
7575
@@ -125,21 +125,21 @@ type channelResponse struct {
125125}
126126
127127type channelModelPricingResponse struct {
128- ID int64 `json:"id"`
129- Platform string `json:"platform"`
130- Models []string `json:"models"`
131- BillingMode string `json:"billing_mode"`
132- InputPrice * float64 `json:"input_price"`
133- OutputPrice * float64 `json:"output_price"`
134- CacheWritePrice * float64 `json:"cache_write_price"`
135- CacheReadPrice * float64 `json:"cache_read_price"`
136- ImageInputPrice * float64 `json:"image_input_price"`
137- ImageCacheReadPrice * float64 `json:"image_cache_read_price"`
138- ImageOutputPrice * float64 `json:"image_output_price"`
139- PerRequestPrice * float64 `json:"per_request_price"`
140- LongContextPricingEnabled * bool `json:"long_context_pricing_enabled"`
141- LongContextInputTokenThreshold * int `json:"long_context_input_token_threshold"`
142- Intervals []pricingIntervalResponse `json:"intervals"`
128+ ID int64 `json:"id"`
129+ Platform string `json:"platform"`
130+ Models []string `json:"models"`
131+ BillingMode string `json:"billing_mode"`
132+ InputPrice * float64 `json:"input_price"`
133+ OutputPrice * float64 `json:"output_price"`
134+ CacheWritePrice * float64 `json:"cache_write_price"`
135+ CacheReadPrice * float64 `json:"cache_read_price"`
136+ ImageInputPrice * float64 `json:"image_input_price"`
137+ ImageCacheReadPrice * float64 `json:"image_cache_read_price"`
138+ ImageOutputPrice * float64 `json:"image_output_price"`
139+ PerRequestPrice * float64 `json:"per_request_price"`
140+ LongContextPricingEnabled * bool `json:"long_context_pricing_enabled"`
141+ LongContextInputTokenThreshold * int `json:"long_context_input_token_threshold"`
142+ Intervals []pricingIntervalResponse `json:"intervals"`
143143 TimeRanges []pricingTimeRangeResponse `json:"time_ranges"`
144144}
145145
0 commit comments