调用本地大模型, 已调通

This commit is contained in:
2026-03-31 07:53:20 +08:00
parent 454128c616
commit 48cd1115f2
2 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package com.rj.service;
import com.rj.dto.AiQaCustomerAskRequestDto;
import com.rj.dto.AiQaCustomerAskResponseDto;
/**
* AI 问答子表:客户提问并调用大模型的业务
*/
public interface IAiQaCustomerAskService {
/**
* 校验入参、拼装 messages、调用本地 OpenAI 兼容接口,返回回答数据。
*
* @throws IllegalArgumentException 入参不合法(非受检,调用方需捕获或转为 HTTP 400
* @throws Exception HTTP 或解析失败、模型返回错误等
*/
AiQaCustomerAskResponseDto askCustomer(AiQaCustomerAskRequestDto request) throws Exception;
}