更新pom.xml以添加reactor-netty-http依赖,修改ChatApplication以启用LlmApiProperties配置,优化ChatServiceImpl以处理LLM服务的JSON响应,添加内容提取和清理方法,更新application.yml以配置LLM服务的基本URL和日志级别。
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
package com.yundage.chat;
|
||||
|
||||
import com.yundage.chat.config.LlmApiProperties;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
|
||||
|
||||
@SpringBootApplication(exclude = {HibernateJpaAutoConfiguration.class})
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
|
||||
@SpringBootApplication
|
||||
@MapperScan("com.yundage.chat.mapper")
|
||||
@EnableConfigurationProperties(LlmApiProperties.class)
|
||||
public class ChatApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in New Issue
Block a user