-
|
Hi, I'm having trouble generating embedding using Vertex AI API via SDK Using the Details google-cloud-rust/src/generated/cloud/aiplatform/v1/src/stub.rs Lines 6036 to 6037 in 509556c When called via SDK the server gives BadReqeust with strange and misleading information. When called via The REST API is saying 'model not supported' with The official documentations here https://docs.cloud.google.com/vertex-ai/generative-ai/docs/embeddings/get-text-embeddings#get_text_embeddings_for_a_snippet_of_text But when I want to use it via Rust SDK I can't make it work. Qustion Thank you, P.S. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
This looks more like a question about the service than a question about the Rust SDK. The fact you were able to reproduce with plain REST suggests that is the case. I am no expert in all the Google Cloud APIs, so I apologize in advance if I get something wrong. The service resources page has some links to get help directly from the service folks. With that out of the way. The list of supported services is here: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models The model IDs are a bit hard to find, but are included with each model sheet, e.g.:
The https://ai.google.dev/gemini-api/docs/embeddings I find it confusing myself, but the Gemini API and the Vertex AI APIs are different things, with different models. They use similar methods and messages, but they use different endpoints and models. The Rust SDK targets the Vertex AI API. |
Beta Was this translation helpful? Give feedback.

I missed that part of your question. I read your question again, and I do not think I missed anything else, let me know if I did.