mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
15 lines
304 B
TypeScript
15 lines
304 B
TypeScript
import http from '@/lib/http'
|
|
|
|
export interface ChatComplicationMessage {
|
|
role: string
|
|
content: string
|
|
name?: string
|
|
}
|
|
|
|
const openai = {
|
|
store_record(data: { file_name?: string, messages?: ChatComplicationMessage[] }) {
|
|
return http.post('/chatgpt_record', data)
|
|
},
|
|
}
|
|
|
|
export default openai
|