变更预识别板块修改
This commit is contained in:
+11
-5
@@ -6,7 +6,7 @@
|
||||
* - 本地联调形态:前端直连 exchange(moc-server 的登录双令牌下发链路就绪后,
|
||||
* 改为登录时由 moc-server 下发 ai_token,本层仅需替换 getAiToken 来源)
|
||||
*/
|
||||
|
||||
import { request } from '../request/ai';
|
||||
/** ai-server 统一响应 */
|
||||
interface AiResp<T = any> {
|
||||
code: number;
|
||||
@@ -129,9 +129,8 @@ function nextRequestId(prefix: string): string {
|
||||
|
||||
export interface CompareRow {
|
||||
item: string;
|
||||
before: string;
|
||||
after: string;
|
||||
hl?: string[];
|
||||
before_text: string;
|
||||
after_text: string;
|
||||
}
|
||||
|
||||
export interface MatrixPayload {
|
||||
@@ -219,13 +218,20 @@ export interface PreRiskResult {
|
||||
probability: string;
|
||||
protection: string;
|
||||
}
|
||||
|
||||
// 风险预分析
|
||||
export const aiRiskPreAnalysis = (content: string, rows: CompareRow[]) =>
|
||||
aiFetch<PreRiskResult>('/open/v1/moc/change/risk-pre-analysis', {
|
||||
request_id: nextRequestId('pre'),
|
||||
content,
|
||||
rows
|
||||
});
|
||||
// export function aiRiskPreAnalysis (params: { content: string, rows: CompareRow[] }) {
|
||||
// return request({
|
||||
// url: '/open/v1/moc/change/risk-pre-analysis',
|
||||
// method: 'post',
|
||||
// data: params
|
||||
// })
|
||||
// }
|
||||
|
||||
export interface TypeJudgeResult {
|
||||
type: string;
|
||||
|
||||
Reference in New Issue
Block a user