refactor(llm): 重构模型补全流式处理逻辑

- 优化了 ChatReqVO 和 DataRefluxDataSaveReqVO 中的数据类型
- 重构了 ConversationController 和 ConversationService 中的 chatStream 方法
- 重新实现了 ModelService 中的 modelCompletionsStream 方法,采用更高效的处理方式
- 新增了辅助方法 parseStreamLine、extractJsonFromDataString、setupRequest 和 handleResponseEntity 以提高代码可读性和可维护性
This commit is contained in:
Liuyang 2025-03-02 10:31:18 +08:00
parent 6ccf593f0a
commit 071516df0c

View File

@ -40,7 +40,10 @@
<groupId>cn.iocoder.boot</groupId>
<artifactId>yudao-spring-boot-starter-excel</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<!-- DB 相关 -->
<dependency>
<groupId>cn.iocoder.boot</groupId>