Class SpringAIOpenrouterConfig
java.lang.Object
com.bytedesk.ai.springai.providers.openrouter.SpringAIOpenrouterConfig
@Configuration
@ConditionalOnProperty(name="spring.ai.openrouter.chat.enabled",
havingValue="true",
matchIfMissing=false)
public class SpringAIOpenrouterConfig
extends Object
Openrouter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.ai.openai.api.OpenAiApi
(package private) org.springframework.ai.chat.client.ChatClient
(package private) org.springframework.ai.openai.OpenAiChatModel
(package private) org.springframework.ai.openai.OpenAiChatOptions
-
Field Details
-
baseUrl
-
apiKey
-
model
-
temperature
-
-
Constructor Details
-
SpringAIOpenrouterConfig
public SpringAIOpenrouterConfig()
-
-
Method Details
-
openrouterApi
@Bean("openrouterApi") org.springframework.ai.openai.api.OpenAiApi openrouterApi() -
openrouterChatOptions
@Bean("openrouterChatOptions") org.springframework.ai.openai.OpenAiChatOptions openrouterChatOptions() -
openrouterChatModel
@Bean("openrouterChatModel") org.springframework.ai.openai.OpenAiChatModel openrouterChatModel() -
openrouterChatClient
@Bean("openrouterChatClient") org.springframework.ai.chat.client.ChatClient openrouterChatClient()
-