修复模型绑定 API KEY 失败的 bug

This commit is contained in:
GeekMaster
2025-05-05 17:19:38 +08:00
parent 73f5a44e0a
commit 7bc55f3ed1
3 changed files with 146 additions and 113 deletions

View File

@@ -13,7 +13,7 @@ type ChatModel struct {
Description string `json:"description"` // 模型描述
Category string `json:"category"` //模型类别
Temperature float32 `json:"temperature"` // 模型温度
KeyId int `json:"key_id,omitempty"`
KeyId uint `json:"key_id,omitempty"`
KeyName string `json:"key_name"`
Options map[string]string `json:"options"`
Type string `json:"type"`