【新增】AI:聊天角色管理(80%)

This commit is contained in:
YunaiV
2024-05-13 21:46:32 +08:00
parent 9e99807bd0
commit c16bcef5a6
6 changed files with 55 additions and 36 deletions

View File

@ -18,7 +18,7 @@ export const ApiKeyApi = {
},
// 获得 API 密钥列表
getApiKeyList: async () => {
getApiKeySimpleList: async () => {
return await request.get({ url: `/ai/api-key/simple-list` })
},

View File

@ -21,6 +21,16 @@ export const ChatModelApi = {
return await request.get({ url: `/ai/chat-model/page`, params })
},
// 获得聊天模型列表
getChatModelSimpleList: async (status?: number) => {
return await request.get({
url: `/ai/chat-model/simple-list`,
params: {
status
}
})
},
// 查询聊天模型详情
getChatModel: async (id: number) => {
return await request.get({ url: `/ai/chat-model/get?id=` + id })