remove platform field for api key and chat model

This commit is contained in:
RockYang
2024-07-30 17:24:21 +08:00
parent 7f9b8d8246
commit 96f1126d02
12 changed files with 896 additions and 28 deletions

View File

@@ -3,7 +3,6 @@ package model
// ApiKey OpenAI API 模型
type ApiKey struct {
BaseModel
Platform string
Name string
Type string // 用途 chat => 聊天img => 绘图
Value string // API Key 的值

View File

@@ -2,7 +2,6 @@ package model
type ChatModel struct {
BaseModel
Platform string
Name string
Value string // API Key 的值
SortNum int

View File

@@ -3,7 +3,6 @@ package vo
// ApiKey OpenAI API 模型
type ApiKey struct {
BaseVo
Platform string `json:"platform"`
Name string `json:"name"`
Type string `json:"type"`
Value string `json:"value"` // API Key 的值

View File

@@ -2,7 +2,6 @@ package vo
type ChatModel struct {
BaseVo
Platform string `json:"platform"`
Name string `json:"name"`
Value string `json:"value"`
Enabled bool `json:"enabled"`