Compare commits
No commits in common. "3949d55d64682955c770f9ecdeb6733f95227f8a" and "779bbfe179cb8941987e47e3fe4c8e0f398ee9a7" have entirely different histories.
3949d55d64
...
779bbfe179
|
@ -1,8 +1,7 @@
|
|||
import request from '@/utils/request'
|
||||
import axios from 'axios'
|
||||
|
||||
let rootPath = import.meta.env.VITE_APP_ENV === 'production' ? "https://ai.ysaix.com:7864" : '';
|
||||
// 查询模板列表
|
||||
// 查询模板列表
|
||||
export function modelList(params) {
|
||||
return request({
|
||||
url: '/education/llmModel/list',
|
||||
|
@ -13,20 +12,21 @@ export function modelList(params) {
|
|||
|
||||
export function conversation(data) {
|
||||
return axios({
|
||||
url: rootPath + '/v1/api/new_conversation',
|
||||
url: '/v1/api/new_conversation',
|
||||
method: 'get',
|
||||
headers: {
|
||||
'Authorization':'Bearer ragflow-IwNzMxMTIyOGY0ZTExZWZiOGE2MDI0Mm',
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': '*/*'
|
||||
},
|
||||
data: data
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 进行课标研读对话
|
||||
export function completion(data) {
|
||||
return axios({
|
||||
url: rootPath + '/v1/api/completion',
|
||||
url: '/v1/api/completion',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Authorization':'Bearer ragflow-IwNzMxMTIyOGY0ZTExZWZiOGE2MDI0Mm',
|
||||
|
@ -35,4 +35,4 @@ export function completion(data) {
|
|||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue