Llm4sSpringAiAutoConfiguration
org.llm4s.springai.Llm4sSpringAiAutoConfiguration
@Experimental @AutoConfiguration(value = _, before = _, beforeName = _, after = _, afterName = scala.Array.apply[java.lang.String]("org.llm4s.spring.Llm4sAutoConfiguration")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String]))) @ConditionalOnClass(value = _, name = scala.Array.apply[java.lang.String]("org.springframework.ai.chat.model.ChatModel")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
Exposes the llm4s client as a Spring AI ChatModel bean (#2278): when Spring AI is on the classpath and the context has a JLlmClient - the one the llm4s Spring Boot starter configures from llm4s.*, or the application's own - and no ChatModel bean yet. A ChatClient built from that model then answers through llm4s. An application that defines its own ChatModel keeps it.
Attributes
- Source
- Llm4sSpringAiAutoConfiguration.scala
- Graph
-
- Supertypes
Members list
In this article
