Compare commits

...

2 Commits

Author SHA1 Message Date
CYS 4095390f45 Merge pull request '插入素材' (#166) from cys_dev into main
Reviewed-on: #166
2024-12-20 17:12:50 +08:00
cys d75af2636d 插入素材 2024-12-20 17:12:07 +08:00
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@ import axios from 'axios'
import request from '@/utils/request'
import { getToken } from "@/utils/auth";
let rootPath = import.meta.env.VITE_APP_ENV === 'production' ? 'https://ai.ysaix.com:7864' : ''
// 文生图片
export function convertTextToPicture(data) {
return axios({
@ -42,7 +44,7 @@ export function getPicture(data) {
// 大模型对话生成prompt模板
export function chattoprompt(dataset_id,prompt) {
return axios({
url: '/api/v1/parse/docs',
url: rootPath + '/api/v1/parse/docs',
method: 'post',
headers: {
'Authorization': 'Bearer ragflow-IwMDI1MGU2YTU3NjExZWZiNWEzMDI0Mm',