Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse the constructor with suppliers for Tika components if you intend to use this parser for multiple files and specify whether to include metadata or not.Use the constructor with suppliers for Tika components if you intend to use this parser for multiple files.please use
AnthropicTokenUsage.builder()
insteadFor JSON output, you can replace `.responseFormat(new ChatCompletionsJsonResponseFormat())` with a `JsonSchema` in the `ResponseFormat`. You can then use `.strictJsonSchema(true)`to force JSON schema adherence.Please useAzureOpenAiStreamingChatModel.Builder.openAIAsyncClient(OpenAIAsyncClient)
instead, if you require response streaming. Please useAzureOpenAiChatModel
instead, if you require sync responses.For JSON output, you can replace `.responseFormat(new ChatCompletionsJsonResponseFormat())` with a `JsonSchema` in the `ResponseFormat`. You can then use `.strictJsonSchema(true)`to force JSON schema adherence.If you want to continue using sync client, useAzureOpenAiChatModel
instead.Please use other constructors and specify the model name explicitly.please useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockChatModel
please useBedrockChatModel
please useBedrockChatModel
please useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockStreamingChatModel
insteadplease useBedrockChatRequestParameters.Builder.enableReasoning(Integer)
insteadplease useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockChatModel
insteadWill be removed in the next release, this functionality will not be supported anymore. Please reach out (via GitHub issues) if you use it.Will be removed in the next release, this functionality will not be supported anymore. Please reach out (via GitHub issues) if you use it.please useBedrockChatModel
insteadplease useBedrockChatModel
Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters.Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters.please useMistralAiChatModel.MistralAiChatModelBuilder.responseFormat(ResponseFormat)
insteadplease useMistralAiChatModel.MistralAiChatModelBuilder.responseFormat(ResponseFormat)
insteadPlease usebuilder()
instead, and explicitly set the baseUrl and, if necessary, other parameters. The default value for baseUrl will be removed in future releases!The "Bison" models have been discontinued by Google. Please use one of the "Gemini" models withVertexAiGeminiChatModel
from thelangchain4j-vertex-ai-gemini
module instead.The "Bison" models have been discontinued by Google. Please use one of the "Gemini" models withVertexAiGeminiChatModel
from thelangchain4j-vertex-ai-gemini
module instead.dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder.dimension(Integer) dimension is not used anymore.
-
Deprecated ClassesClassDescriptionplease use
BedrockChatModel
insteadplease useBedrockChatModel
please useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockChatModel
please useBedrockChatModel
please useBedrockChatModel
please useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockStreamingChatModel
insteadplease useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockChatModel
insteadplease useBedrockChatModel
please useBedrockChatModel
insteadWill be removed in the next release, this functionality will not be supported anymore. Please reach out (via GitHub issues) if you use it.Will be removed in the next release, this functionality will not be supported anymore. Please reach out (via GitHub issues) if you use it.please useBedrockChatModel
insteadplease useBedrockChatModel
The "Bison" models have been discontinued by Google. Please use one of the "Gemini" models withVertexAiGeminiChatModel
from thelangchain4j-vertex-ai-gemini
module instead.The "Bison" models have been discontinued by Google. Please use one of the "Gemini" models withVertexAiGeminiChatModel
from thelangchain4j-vertex-ai-gemini
module instead.
-
Deprecated MethodsMethodDescriptionFor JSON output, you can replace `.responseFormat(new ChatCompletionsJsonResponseFormat())` with a `JsonSchema` in the `ResponseFormat`. You can then use `.strictJsonSchema(true)`to force JSON schema adherence.Please use
AzureOpenAiStreamingChatModel.Builder.openAIAsyncClient(OpenAIAsyncClient)
instead, if you require response streaming. Please useAzureOpenAiChatModel
instead, if you require sync responses.For JSON output, you can replace `.responseFormat(new ChatCompletionsJsonResponseFormat())` with a `JsonSchema` in the `ResponseFormat`. You can then use `.strictJsonSchema(true)`to force JSON schema adherence.If you want to continue using sync client, useAzureOpenAiChatModel
instead.please useBedrockChatRequestParameters.Builder.enableReasoning(Integer)
insteadPlease usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters.Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters.please useMistralAiChatModel.MistralAiChatModelBuilder.responseFormat(ResponseFormat)
insteadplease useMistralAiChatModel.MistralAiChatModelBuilder.responseFormat(ResponseFormat)
insteadPlease useOllamaChatModel.OllamaChatModelBuilder.responseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here.Please useOllamaLanguageModel.OllamaLanguageModelBuilder.responseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here.dev.langchain4j.model.ollama.OllamaStreamingChatModel.OllamaStreamingChatModelBuilder.format(String) Please useOllamaStreamingChatModel.OllamaStreamingChatModelBuilder.responseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here.Please useOllamaStreamingLanguageModel.OllamaStreamingLanguageModelBuilder.responseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here.Functions are deprecated by OpenAI, useOpenAiUtils.toTools(Collection, boolean)
insteadPlease usebuilder()
instead, and explicitly set the baseUrl and, if necessary, other parameters. The default value for baseUrl will be removed in future releases!dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder.dimension(Integer) dimension is not used anymore.
-
Deprecated ConstructorsConstructorDescriptionUse the constructor with suppliers for Tika components if you intend to use this parser for multiple files and specify whether to include metadata or not.Use the constructor with suppliers for Tika components if you intend to use this parser for multiple files.please use
AnthropicTokenUsage.builder()
insteadPlease use other constructors and specify the model name explicitly.
-
Deprecated Enum Constants