Skip to content

Commit 2388562

Browse files
committed
GH-924 Deprecate PaLM API support
- As a follow up to decommission the PaLM API, the PaLM API support is currently deprecated. - Add @deprecated notes to the model and vector store classes - Removed the documentation entries Resolves #GH-924
1 parent 08a007f commit 2388562

File tree

22 files changed

+18
-497
lines changed

22 files changed

+18
-497
lines changed

models/spring-ai-vertex-ai-palm2/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

models/spring-ai-vertex-ai-palm2/src/main/java/org/springframework/ai/vertexai/palm2/VertexAiPaLm2ChatModel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
/**
3737
* @author Christian Tzolov
3838
*/
39+
@Deprecated(since = "1.0.0-M4", forRemoval = true) // PaLM API is deprecated
3940
public class VertexAiPaLm2ChatModel implements ChatModel {
4041

4142
private final VertexAiPaLm2Api vertexAiApi;

models/spring-ai-vertex-ai-palm2/src/main/java/org/springframework/ai/vertexai/palm2/VertexAiPaLm2ChatOptions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @author Thomas Vitale
3131
*/
3232
@JsonInclude(Include.NON_NULL)
33+
@Deprecated(since = "1.0.0-M4", forRemoval = true) // PaLM API is deprecated
3334
public class VertexAiPaLm2ChatOptions implements ChatOptions {
3435

3536
// @formatter:off

models/spring-ai-vertex-ai-palm2/src/main/java/org/springframework/ai/vertexai/palm2/VertexAiPaLm2EmbeddingModel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
/**
3030
* @author Christian Tzolov
3131
*/
32+
@Deprecated(since = "1.0.0-M4", forRemoval = true) // PaLM API is deprecated
3233
public class VertexAiPaLm2EmbeddingModel extends AbstractEmbeddingModel {
3334

3435
private final VertexAiPaLm2Api vertexAiApi;

models/spring-ai-vertex-ai-palm2/src/main/java/org/springframework/ai/vertexai/palm2/aot/VertexRuntimeHints.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @author Christian Tzolov
3232
* @author Mark Pollack
3333
*/
34+
@Deprecated(since = "1.0.0-M4", forRemoval = true) // PaLM API is deprecated
3435
public class VertexRuntimeHints implements RuntimeHintsRegistrar {
3536

3637
@Override

models/spring-ai-vertex-ai-palm2/src/main/java/org/springframework/ai/vertexai/palm2/api/VertexAiPaLm2Api.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
* @author Christian Tzolov
9393
* @author Thomas Vitale
9494
*/
95+
@Deprecated(since = "1.0.0-M4", forRemoval = true) // PaLM API is deprecated
9596
public class VertexAiPaLm2Api {
9697

9798
/**
@@ -613,4 +614,4 @@ public enum BlockedReason {
613614
}
614615
}
615616
}
616-
// @formatter:on
617+
// @formatter:on

pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
<module>models/spring-ai-transformers</module>
9696
<module>models/spring-ai-vertex-ai-gemini</module>
9797
<module>models/spring-ai-vertex-ai-embedding</module>
98-
<module>models/spring-ai-vertex-ai-palm2</module>
9998
<module>models/spring-ai-watsonx-ai</module>
10099
<module>models/spring-ai-zhipuai</module>
101100
<module>models/spring-ai-moonshot</module>
@@ -116,7 +115,6 @@
116115
<module>spring-ai-spring-boot-starters/spring-ai-starter-transformers</module>
117116
<module>spring-ai-spring-boot-starters/spring-ai-starter-vertex-ai-embedding</module>
118117
<module>spring-ai-spring-boot-starters/spring-ai-starter-vertex-ai-gemini</module>
119-
<module>spring-ai-spring-boot-starters/spring-ai-starter-vertex-ai-palm2</module>
120118
<module>spring-ai-spring-boot-starters/spring-ai-starter-watsonx-ai</module>
121119
<module>spring-ai-spring-boot-starters/spring-ai-starter-zhipuai</module>
122120
<module>spring-ai-spring-boot-starters/spring-ai-starter-moonshot</module>

spring-ai-bom/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@
134134
<version>${project.version}</version>
135135
</dependency>
136136

137-
<dependency>
138-
<groupId>org.springframework.ai</groupId>
139-
<artifactId>spring-ai-vertex-ai-palm2</artifactId>
140-
<version>${project.version}</version>
141-
</dependency>
142-
143137
<dependency>
144138
<groupId>org.springframework.ai</groupId>
145139
<artifactId>spring-ai-vertex-ai-embedding</artifactId>
@@ -461,12 +455,6 @@
461455
<version>${project.version}</version>
462456
</dependency>
463457

464-
<dependency>
465-
<groupId>org.springframework.ai</groupId>
466-
<artifactId>spring-ai-vertex-ai-palm2-spring-boot-starter</artifactId>
467-
<version>${project.version}</version>
468-
</dependency>
469-
470458
<dependency>
471459
<groupId>org.springframework.ai</groupId>
472460
<artifactId>spring-ai-vertex-ai-embedding-spring-boot-starter</artifactId>

spring-ai-docs/src/main/antora/modules/ROOT/nav.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*** xref:api/chat/azure-openai-chat.adoc[Azure OpenAI]
2020
**** xref:api/chat/functions/azure-open-ai-chat-functions.adoc[Function Calling]
2121
*** xref:api/chat/google-vertexai.adoc[Google VertexAI]
22-
**** xref:api/chat/vertexai-palm2-chat.adoc[VertexAI PaLM2 ]
2322
**** xref:api/chat/vertexai-gemini-chat.adoc[VertexAI Gemini]
2423
***** xref:api/chat/functions/vertexai-gemini-chat-functions.adoc[Function Calling]
2524
*** xref:api/chat/groq-chat.adoc[Groq]
@@ -55,7 +54,6 @@
5554
*** VertexAI
5655
**** xref:api/embeddings/vertexai-embeddings-text.adoc[Text Embedding]
5756
**** xref:api/embeddings/vertexai-embeddings-multimodal.adoc[Multimodal Embedding]
58-
**** xref:api/embeddings/vertexai-embeddings-palm2.adoc[PaLM2 Embedding]
5957
*** xref:api/embeddings/watsonx-ai-embeddings.adoc[watsonx.AI]
6058
*** xref:api/embeddings/zhipuai-embeddings.adoc[ZhiPu AI]
6159
** xref:api/imageclient.adoc[Image Models]

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/comparison.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ This table compares various Chat Models supported by Spring AI, detailing their
2222
| xref::api/chat/anthropic-chat.adoc[Anthropic Claude] | text, image ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12]
2323
| xref::api/chat/azure-openai-chat.adoc[Azure OpenAI] | text, image ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::no.svg[width=12] ^a| image::yes.svg[width=16]
2424
| xref::api/chat/vertexai-gemini-chat.adoc[Google VertexAI Gemini] | text, image, audio, video ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::no.svg[width=12] ^a| image::yes.svg[width=16]
25-
| xref::api/chat/vertexai-palm2-chat.adoc[Google VertexAI PaML2] | text ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12]
26-
| xref::api/chat/groq-chat.adoc[Groq (OpenAI-proxy)] | text, image ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::yes.svg[width=16]
25+
| xref::api/chat/groq-chat.adoc[Groq (OpenAI-proxy)] | text, image ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::yes.svg[width=16]
2726
| xref::api/chat/huggingface.adoc[HuggingFace] | text ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12]
2827
| xref::api/chat/mistralai-chat.adoc[Mistral AI] | text ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::no.svg[width=12] ^a| image::yes.svg[width=16]
2928
| xref::api/chat/minimax-chat.adoc[MiniMax] | text ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::yes.svg[width=16] ^a| image::no.svg[width=12] ^a| image::no.svg[width=12] ^a|

0 commit comments

Comments
 (0)