36 lines
1.5 KiB
Go
36 lines
1.5 KiB
Go
package dto
|
|
|
|
import "one-api/constant"
|
|
|
|
// 这里不好动就不动了,本来想独立出来的(
|
|
type OpenAIModels struct {
|
|
Id string `json:"id"`
|
|
Object string `json:"object"`
|
|
Created int `json:"created"`
|
|
OwnedBy string `json:"owned_by"`
|
|
SupportedEndpointTypes []constant.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 interface{} `json:"name"`
|
|
BaseModelId interface{} `json:"baseModelId"`
|
|
Version interface{} `json:"version"`
|
|
DisplayName interface{} `json:"displayName"`
|
|
Description interface{} `json:"description"`
|
|
InputTokenLimit interface{} `json:"inputTokenLimit"`
|
|
OutputTokenLimit interface{} `json:"outputTokenLimit"`
|
|
SupportedGenerationMethods []interface{} `json:"supportedGenerationMethods"`
|
|
Thinking interface{} `json:"thinking"`
|
|
Temperature interface{} `json:"temperature"`
|
|
MaxTemperature interface{} `json:"maxTemperature"`
|
|
TopP interface{} `json:"topP"`
|
|
TopK interface{} `json:"topK"`
|
|
}
|