Support to access model gardens using endpoints: rawPredict or streamRawPredict
I maintainer di solito rispondono entro 1 giorno
@hemasekhar-p ci sta già lavorando.
Dal 26/3/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
The Vertex AI documentation describes that we can select one of the different models: open, partner, gemini-family and access them using curl, python and probably this Java SDK (as documented here) but when we use the following code
Client client = null;
try {
GoogleCredentials creds = GoogleCredentials.getApplicationDefault();
creds.refreshIfExpired();
client = Client.builder()
.credentials(creds)
.build();
} catch (Exception e) {
throw new RuntimeException(e);
}
GenerateContentResponse response =
client.models.generateContent("anthropic/claude-opus-4-6", "What is your name?", null);
then we got this error
com.google.genai.errors.ClientException: 400 . claude-opus-4-6 is not supported in the generateContent API.
at com.google.genai.errors.ApiException.throwFromResponse (ApiException.java:94)
at com.google.genai.HttpApiResponse.getBody (HttpApiResponse.java:37)
at com.google.genai.Models.processResponseForPrivateGenerateContent (Models.java:5480)
at com.google.genai.Models.privateGenerateContent (Models.java:5546)
at com.google.genai.Models.generateContent (Models.java:7076)
at com.google.genai.Models.generateContent (Models.java:7150)
at com.google.genai.examples.GenerateContent.main (GenerateContent.java:89)
Suggestion
This Java SDK project is a great library as it allows third-party projects to access the Google Cloud platform and Vertex AI using HTTP(s) with JSON body messages instead of using gRPC.
As the access to one of the model partners like Claude, Mistral, etc relies on the following endpoints
https://LOCATION-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/publishers/anthropic/models/MODEL:rawPredict
https://LOCATION-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/publishers/anthropic/models/MODEL:streamRawPredict
I suggest that this Java SDK also support them. Here is the API documentation: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1/projects.locations.endpoints/rawPredict
FYI: The projects Langchain4j and Quarkus Langchains4j currently use the gRPC code of the following GAV and will be more than happy to use now this SDK with HTTP(S).
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-aiplatform</artifactId>
<version>3.69.0</version>
</dependency>
- Lingua principale
- Java
- Stelle
- 398
- Fork
- 126
- Merge medio
- 1g 12h
- PR unite (30g)
- 71
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di googleapis/java-genai
-
priority: p2 type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
googleapis/java-genai#1372 ·
I maintainer di solito rispondono entro 1 giorno
-
Interactions API: GaosClientException.getMessage() only returns "400 . API error occurred" and omits the server error detailsForse già presa @hemasekhar-p l’ha presa 24 giorni fa. Apertapriority: p2 type: bug
googleapis/java-genai#1282 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Interactions API: store(false) omits "id", breaking Interaction and InteractionCompletedEvent deserializationForse già presa @hemasekhar-p l’ha presa 24 giorni fa. Apertapriority: p2 type: bug
googleapis/java-genai#1281 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Interaction.outputText() always returns Optional.empty() (SDK-computed field is never populated)Forse già presa @hemasekhar-p l’ha presa 25 giorni fa. Apertapriority: p2 type: bug
googleapis/java-genai#1280 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Gen AI with structured output - `propertyOrdering` in Python vs. Java implementationsForse già presa @hemasekhar-p l’ha presa 78 giorni fa. Apertapriority: p3 type: feature request
googleapis/java-genai#1169 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di googleapis/java-genai
Issue simili
-
area:core bug priority:p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
aomarai/minecraft-mcp#247 ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
antonyrag/ragleap-core#1062 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Vakore/ZappierGames#232 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
constellation-app/constellation#2588 ·