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 or not to enable the integration.Image model related settingsWhether the OpenAI client should log requestsWhether the OpenAI client should log responsesThe maximum number of times to retryModeration model related settingsOpenAI Organization ID (https://platform.openai.com/docs/api-reference/organization-optional)timeout()
Timeout for OpenAI calls
-
Method Details
-
baseUrl
Base URL of OpenAI API -
apiKey
OpenAI API key -
organizationId
OpenAI Organization ID (https://platform.openai.com/docs/api-reference/organization-optional) -
timeout
Timeout for OpenAI calls -
maxRetries
The maximum number of times to retry -
logRequests
Whether the OpenAI client should log requests -
logResponses
Whether the OpenAI client should log responses -
enableIntegration
Whether or not to enable the integration. Defaults totrue
, which means requests are made to the OpenAI provider. Set tofalse
to disable all requests. -
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
-