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.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.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 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 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!please useMetadata.chatMessage()
insteaddev.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 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
-
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 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, useInternalOpenAiHelper.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!please useMetadata.chatMessage()
insteaddev.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 other constructors and specify the model name explicitly.
-
Deprecated Enum Constants