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