2026-05-29 16:21:14 +08:00
|
|
|
import { request } from "@/api/request"
|
|
|
|
|
|
|
|
|
|
const AI_API_BASE = import.meta.env.VUE_APP_AI_API_BASE || "http://192.168.0.63:8777"
|
|
|
|
|
|
|
|
|
|
interface DataRowType {
|
|
|
|
|
question: string
|
|
|
|
|
streaming: boolean
|
|
|
|
|
model_name: string
|
|
|
|
|
user_focus_points: string
|
|
|
|
|
project_type: "cpu" | "fpga" | "other"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface DataType {
|
|
|
|
|
question: string
|
|
|
|
|
project_type: "cpu" | "fpga" | "other"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
/**
|
|
|
|
|
* 改为请求测试平台后端然后请求大模型方式
|
|
|
|
|
*/
|
|
|
|
|
getAiTestItemBackend(data: DataType) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/local_doc_qa/testing_item",
|
|
|
|
|
method: "post",
|
|
|
|
|
timeout: 120000,
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|