25 lines
3.0 KiB
Go
25 lines
3.0 KiB
Go
// =================================================================================
|
||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||
// =================================================================================
|
||
|
||
package entity
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
"github.com/shopspring/decimal"
|
||
)
|
||
|
||
// ChnAbilities is the golang structure for table chn_abilities.
|
||
type ChnAbilities struct {
|
||
Id int64 `json:"id" orm:"id" description:"主键ID"` // 主键ID
|
||
ChannelId int64 `json:"channel_id" orm:"channel_id" description:"关联渠道ID"` // 关联渠道ID
|
||
ModelName string `json:"model_name" orm:"model_name" description:"平台标准模型名(用户请求使用的模型名)"` // 平台标准模型名(用户请求使用的模型名)
|
||
UpstreamModel string `json:"upstream_model" orm:"upstream_model" description:"上游实际模型名(与平台标准名不同时需要映射,如平台名 gpt-4 → 上游名 gpt-4-0314)"` // 上游实际模型名(与平台标准名不同时需要映射,如平台名 gpt-4 → 上游名 gpt-4-0314)
|
||
Enabled bool `json:"enabled" orm:"enabled" description:"是否启用该模型能力"` // 是否启用该模型能力
|
||
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
|
||
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
|
||
CostRatio decimal.Decimal `json:"cost_ratio" orm:"cost_ratio" description:"成本比例:该渠道该模型上游实际价/平台基准价,1.0=等价,0.8=八折,参与调度 costFactor 计算(无量纲比例,非金额)"` // 成本比例:该渠道该模型上游实际价/平台基准价,1.0=等价,0.8=八折,参与调度 costFactor 计算(无量纲比例,非金额)
|
||
SupportsResponses bool `json:"supports_responses" orm:"supports_responses" description:"模型在该渠道支持 OpenAI Responses 协议(/v1/responses),responses 入站直连转发并获调度软偏好"` // 模型在该渠道支持 OpenAI Responses 协议(/v1/responses),responses 入站直连转发并获调度软偏好
|
||
ChatViaResponses bool `json:"chat_via_responses" orm:"chat_via_responses" description:"上游仅有 Responses 协议(responses-only 上游),chat 入站经桥接转换后发送 /v1/responses"` // 上游仅有 Responses 协议(responses-only 上游),chat 入站经桥接转换后发送 /v1/responses
|
||
}
|