Interface LangChain4jOpenAiConfig.OpenAiConfig
- Enclosing interface:
LangChain4jOpenAiConfig
public static interface LangChain4jOpenAiConfig.OpenAiConfig
-
Method Summary
Modifier and TypeMethodDescriptionapiKey()
OpenAI API keybaseUrl()
Base URL of OpenAI APIChat model related settingsEmbedding model related settingsWhether to enable the integration.Image model related settingsWhether the OpenAI client should log requestsWhether the OpenAI client should log responsesDeprecated.Using the built-in fault tolerance mechanisms is not recommended.Moderation model related settingsOpenAI Organization ID (https://platform.openai.com/docs/api-reference/organization-optional)The Proxy hostThe Proxy portThe Proxy typetimeout()
Timeout for OpenAI callsIf set, the named TLS configuration with the configured name will be applied to the REST Client
-
Method Details
-
baseUrl
Base URL of OpenAI API -
tlsConfigurationName
-
apiKey
OpenAI API key -
organizationId
-
timeout
-
maxRetries
Deprecated.Using the built-in fault tolerance mechanisms is not recommended. If possible, use MicroProfile Fault Tolerance instead.The maximum number of times to retry. 1 means exactly one attempt, with retrying disabled. -
logRequests
-
logResponses
-
enableIntegration
Whether to enable the integration. Defaults totrue
, which means requests are made to the OpenAI provider. Set tofalse
to disable all requests. -
proxyType
The Proxy type -
proxyHost
-
proxyPort
The Proxy port -
chatModel
ChatModelConfig chatModel()Chat model related settings -
embeddingModel
EmbeddingModelConfig embeddingModel()Embedding model related settings -
moderationModel
ModerationModelConfig moderationModel()Moderation model related settings -
imageModel
ImageModelConfig imageModel()Image model related settings
-