Files
new-api/relaykit/dto/pricing.go
T
CaIon 14a9acd368 feat(custom): CNY native billing, daily check-in button, subscription plans page, usage docs and promo banner
Based on QuantumNous/new-api v1.0.0-rc.36 (shallow history squashed).

- CNY quota display mode: RMB-denominated top-up and crediting across Epay/Waffo channels
- New CheckinButton in both authenticated and public headers (Turnstile supported)
- New /subscribe page with public plan snapshot, Alipay/balance payment, auto group upgrade/reset
- New /docs 12-section beginner guide with anchor navigation
- New home PromoBanner linking to /docs; i18n synced (en/zh/zh-TW/fr/ja/ru/vi)
- README: document custom features, live demo https://ai.88531.cn
2026-09-23 16:28:52 +08:00

36 lines
1.4 KiB
Go

package dto
import "github.com/QuantumNous/new-api/relaykit/types"
// 这里不好动就不动了,本来想独立出来的(
type OpenAIModels struct {
Id string `json:"id"`
Object string `json:"object"`
Created int `json:"created"`
OwnedBy string `json:"owned_by"`
SupportedEndpointTypes []types.EndpointType `json:"supported_endpoint_types"`
}
type AnthropicModel struct {
ID string `json:"id"`
CreatedAt string `json:"created_at"`
DisplayName string `json:"display_name"`
Type string `json:"type"`
}
type GeminiModel struct {
Name any `json:"name"`
BaseModelId any `json:"baseModelId"`
Version any `json:"version"`
DisplayName any `json:"displayName"`
Description any `json:"description"`
InputTokenLimit any `json:"inputTokenLimit"`
OutputTokenLimit any `json:"outputTokenLimit"`
SupportedGenerationMethods []any `json:"supportedGenerationMethods"`
Thinking any `json:"thinking"`
Temperature any `json:"temperature"`
MaxTemperature any `json:"maxTemperature"`
TopP any `json:"topP"`
TopK any `json:"topK"`
}