mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-06 00:07:34 +00:00
feat: 查询ppt apikey
This commit is contained in:
@@ -25,11 +25,13 @@ public class OkHttpConfig {
|
||||
public void init() {
|
||||
initializeOkHttpUtil("suno");
|
||||
initializeOkHttpUtil("luma");
|
||||
initializeOkHttpUtil("ppt");
|
||||
}
|
||||
|
||||
private void initializeOkHttpUtil(String modelName) {
|
||||
ChatModelVo chatModelVo = chatModelService.selectModelByName(modelName);
|
||||
if(chatModelVo==null){
|
||||
return;
|
||||
}
|
||||
OkHttpUtil okHttpUtil = new OkHttpUtil();
|
||||
okHttpUtil.setApiHost(chatModelVo.getApiHost());
|
||||
okHttpUtil.setApiKey(chatModelVo.getApiKey());
|
||||
|
||||
@@ -10,6 +10,7 @@ import org.ruoyi.chat.enums.DisplayType;
|
||||
import org.ruoyi.common.excel.utils.ExcelUtil;
|
||||
import org.ruoyi.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.ruoyi.core.page.TableDataInfo;
|
||||
import org.ruoyi.domain.ChatModel;
|
||||
import org.ruoyi.domain.bo.ChatModelBo;
|
||||
import org.ruoyi.domain.vo.ChatModelVo;
|
||||
import org.ruoyi.service.IChatModelService;
|
||||
@@ -55,6 +56,15 @@ public class ChatModelController extends BaseController {
|
||||
return R.ok(chatModelService.queryList(bo));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询ppt模型信息
|
||||
*/
|
||||
@GetMapping("/getPPT")
|
||||
public R<ChatModel> getPPT() {
|
||||
return R.ok(chatModelService.getPPT());
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出聊天模型列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user