package com.zy.ai.config;
|
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Configuration;
|
import org.springframework.web.reactive.function.client.WebClient;
|
|
@Configuration
|
public class LlmConfig {
|
|
@Value("${llm.base-url}")
|
private String baseUrl;
|
|
@Bean
|
public WebClient llmWebClient() {
|
return WebClient.builder()
|
.baseUrl(baseUrl)
|
.build();
|
}
|
}
|