mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
refactor: refactor app and api
This commit is contained in:
parent
5ab50b8a93
commit
287ef7527d
157 changed files with 8116 additions and 3587 deletions
|
@ -1,9 +1,15 @@
|
|||
import http from '@/lib/http'
|
||||
|
||||
export interface ChatComplicationMessage {
|
||||
role: string
|
||||
content: string
|
||||
name?: string
|
||||
}
|
||||
|
||||
const openai = {
|
||||
store_record(data: any) {
|
||||
store_record(data: { file_name: string; messages: ChatComplicationMessage[] }) {
|
||||
return http.post('/chat_gpt_record', data)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
export default openai
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue