pricing.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package dto
  2. import "github.com/QuantumNous/new-api/constant"
  3. // 这里不好动就不动了,本来想独立出来的(
  4. type OpenAIModels struct {
  5. Id string `json:"id"`
  6. Object string `json:"object"`
  7. Created int `json:"created"`
  8. OwnedBy string `json:"owned_by"`
  9. SupportedEndpointTypes []constant.EndpointType `json:"supported_endpoint_types"`
  10. }
  11. type AnthropicModel struct {
  12. ID string `json:"id"`
  13. CreatedAt string `json:"created_at"`
  14. DisplayName string `json:"display_name"`
  15. Type string `json:"type"`
  16. }
  17. type GeminiModel struct {
  18. Name interface{} `json:"name"`
  19. BaseModelId interface{} `json:"baseModelId"`
  20. Version interface{} `json:"version"`
  21. DisplayName interface{} `json:"displayName"`
  22. Description interface{} `json:"description"`
  23. InputTokenLimit interface{} `json:"inputTokenLimit"`
  24. OutputTokenLimit interface{} `json:"outputTokenLimit"`
  25. SupportedGenerationMethods []interface{} `json:"supportedGenerationMethods"`
  26. Thinking interface{} `json:"thinking"`
  27. Temperature interface{} `json:"temperature"`
  28. MaxTemperature interface{} `json:"maxTemperature"`
  29. TopP interface{} `json:"topP"`
  30. TopK interface{} `json:"topK"`
  31. }