Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Record Classes
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.ai.embedding.EmbeddingOptions.EMPTY
    org.springframework.ai.minimax.api.MiniMaxApi.ChatModel.ABAB_6_Chat
    org.springframework.ai.mistralai.api.MistralAiApi.ChatModel.MEDIUM
    org.springframework.ai.mistralai.api.MistralAiApi.ChatModel.MIXTRAL
    org.springframework.ai.mistralai.api.MistralAiApi.ChatModel.TINY
    org.springframework.ai.model.function.AbstractFunctionCallSupport
    since 1.0.0-M1 in favor of AbstractToolCallSupport
    org.springframework.ai.model.Media(MimeType, Object)
    This constructor is deprecated since version 1.0.0 M1 and will be removed in a future release.
    org.springframework.ai.ollama.api.OllamaApi.EmbeddingRequest
    Use OllamaApi.EmbeddingsRequest instead.
    org.springframework.ai.ollama.api.OllamaApi.EmbeddingResponse
    Use OllamaApi.EmbeddingsResponse instead.
    org.springframework.ai.ollama.api.OllamaApi.embeddings(OllamaApi.EmbeddingRequest)
    Use OllamaApi.embed(EmbeddingsRequest) instead.
    org.springframework.ai.ollama.api.OllamaApi.generate(OllamaApi.GenerateRequest)
    Use OllamaApi.chat(ChatRequest) instead.
    org.springframework.ai.ollama.api.OllamaApi.GenerateRequest
    org.springframework.ai.ollama.api.OllamaApi.GenerateResponse
    org.springframework.ai.ollama.api.OllamaApi.generateStreaming(OllamaApi.GenerateRequest)
    Use OllamaApi.streamingChat(ChatRequest) instead.
    org.springframework.ai.openai.api.OpenAiApi.ChatModel.GPT_4_32K
    org.springframework.ai.openai.api.OpenAiApi.ChatModel.GPT_4_VISION_PREVIEW
    org.springframework.ai.postgresml.PostgresMlEmbeddingModel(JdbcTemplate, String)
    org.springframework.ai.postgresml.PostgresMlEmbeddingModel(JdbcTemplate, String, PostgresMlEmbeddingModel.VectorType)
    Use the constructor with PostgresMlEmbeddingOptions instead.
    org.springframework.ai.postgresml.PostgresMlEmbeddingModel(JdbcTemplate, String, PostgresMlEmbeddingModel.VectorType, Map<String, Object>, MetadataMode)
    org.springframework.ai.vectorstore.qdrant.QdrantVectorStore(QdrantClient, QdrantVectorStore.QdrantVectorStoreConfig, EmbeddingModel, boolean)
    since 1.0.0 in favor of QdrantVectorStore.
    org.springframework.ai.vectorstore.qdrant.QdrantVectorStore.QdrantVectorStoreConfig
    since 1.0.0 in favor of QdrantVectorStore.
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.ai.chat.client.RequestResponseAdvisor
    since 1.0.0 M3 please use CallAroundAdvisor or StreamAroundAdvisor instead.
    org.springframework.ai.parser.FormatProvider
    Use the FormatProvider instead.
    org.springframework.ai.parser.OutputParser
    Use the StructuredOutputConverter instead.
  • Deprecated Classes
    Class
    Description
    org.springframework.ai.model.function.AbstractFunctionCallSupport
    since 1.0.0-M1 in favor of AbstractToolCallSupport
    org.springframework.ai.parser.AbstractConversionServiceOutputParser
    Use the AbstractConversionServiceOutputConverter instead. Abstract OutputParser implementation that uses a pre-configured DefaultConversionService to convert the LLM output into the desired type format.
    org.springframework.ai.parser.AbstractMessageConverterOutputParser
    Use the AbstractMessageOutputConverter instead. Abstract OutputParser implementation that uses a pre-configured MessageConverter to convert the LLM output into the desired type format.
    org.springframework.ai.parser.BeanOutputParser
    Use the BeanOutputConverter instead. An implementation of OutputParser that transforms the LLM output to a specific object type using JSON schema. This parser works by generating a JSON schema based on a given Java class, which is then used to validate and transform the LLM output into the desired type.
    org.springframework.ai.parser.ListOutputParser
    Use the ListOutputConverter instead. OutputParser implementation that uses a DefaultConversionService to convert the LLM output into a List instance.
    org.springframework.ai.parser.MapOutputParser
    Use the MapOutputConverter instead. OutputParser implementation that uses a pre-configured MappingJackson2MessageConverter to convert the LLM output into a java.util.Map<String, Object> instance.
    org.springframework.ai.vectorstore.qdrant.QdrantVectorStore.QdrantVectorStoreConfig
    since 1.0.0 in favor of QdrantVectorStore.
  • Deprecated Record Classes
    Record Class
    Description
    org.springframework.ai.ollama.api.OllamaApi.EmbeddingRequest
    Use OllamaApi.EmbeddingsRequest instead.
    org.springframework.ai.ollama.api.OllamaApi.EmbeddingResponse
    Use OllamaApi.EmbeddingsResponse instead.
    org.springframework.ai.ollama.api.OllamaApi.GenerateRequest
    org.springframework.ai.ollama.api.OllamaApi.GenerateResponse
  • Deprecated Fields
    Field
    Description
    org.springframework.ai.embedding.EmbeddingOptions.EMPTY
    org.springframework.ai.vectorstore.filter.antlr4.FiltersLexer.tokenNames
    Use FiltersLexer.VOCABULARY instead.
    org.springframework.ai.vectorstore.filter.antlr4.FiltersParser.tokenNames
    Use FiltersParser.VOCABULARY instead.
  • Deprecated Methods
    Method
    Description
    org.springframework.ai.autoconfigure.vectorstore.cassandra.CassandraVectorStoreProperties.getDisallowSchemaCreation()
    org.springframework.ai.autoconfigure.vectorstore.cassandra.CassandraVectorStoreProperties.setDisallowSchemaCreation(boolean)
    org.springframework.ai.chat.model.Generation.withGenerationMetadata(ChatGenerationMetadata)
    Use Generation(AssitantMessage, ChatGenerationMetadata) constructor instead.
    org.springframework.ai.converter.StructuredOutputConverter.parse(String)
    Use the Converter.convert(Object) instead.
    org.springframework.ai.ollama.api.OllamaApi.embeddings(OllamaApi.EmbeddingRequest)
    Use OllamaApi.embed(EmbeddingsRequest) instead.
    org.springframework.ai.ollama.api.OllamaApi.generate(OllamaApi.GenerateRequest)
    Use OllamaApi.chat(ChatRequest) instead.
    org.springframework.ai.ollama.api.OllamaApi.generateStreaming(OllamaApi.GenerateRequest)
    Use OllamaApi.streamingChat(ChatRequest) instead.
    org.springframework.ai.vectorstore.filter.antlr4.FiltersLexer.getTokenNames()
    org.springframework.ai.vectorstore.filter.antlr4.FiltersParser.getTokenNames()
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.ai.chat.model.Generation(String)
    Use Generation(AssitantMessage) constructor instead.
    org.springframework.ai.chat.model.Generation(String, Map<String, Object>)
    Use Generation(AssitantMessage) constructor instead.
    org.springframework.ai.evaluation.EvaluationResponse(boolean, float, String, Map<String, Object>)
    org.springframework.ai.model.Media(MimeType, Object)
    This constructor is deprecated since version 1.0.0 M1 and will be removed in a future release.
    org.springframework.ai.postgresml.PostgresMlEmbeddingModel(JdbcTemplate, String)
    org.springframework.ai.postgresml.PostgresMlEmbeddingModel(JdbcTemplate, String, PostgresMlEmbeddingModel.VectorType)
    Use the constructor with PostgresMlEmbeddingOptions instead.
    org.springframework.ai.postgresml.PostgresMlEmbeddingModel(JdbcTemplate, String, PostgresMlEmbeddingModel.VectorType, Map<String, Object>, MetadataMode)
    org.springframework.ai.vectorstore.qdrant.QdrantVectorStore(QdrantClient, QdrantVectorStore.QdrantVectorStoreConfig, EmbeddingModel, boolean)
    since 1.0.0 in favor of QdrantVectorStore.
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.springframework.ai.minimax.api.MiniMaxApi.ChatModel.ABAB_6_Chat
    org.springframework.ai.mistralai.api.MistralAiApi.ChatModel.MEDIUM
    org.springframework.ai.mistralai.api.MistralAiApi.ChatModel.MIXTRAL
    org.springframework.ai.mistralai.api.MistralAiApi.ChatModel.TINY
    org.springframework.ai.openai.api.OpenAiApi.ChatModel.GPT_4_32K
    org.springframework.ai.openai.api.OpenAiApi.ChatModel.GPT_4_VISION_PREVIEW

Copyright © 2024 VMware Inc.. All rights reserved.