https://www.boundaryml.com logo
🟡 Vertex Authentication Question
# questions
a
Have a vertex authentication related question if anyone is available for office hours
s
I can hop on
a
@seawatts Getting this error message in baml playground, set credentials whtin the client definition using service account json string, also set baml playground env variable as well https://cdn.discordapp.com/attachments/1408535736919003338/1408541186943356939/Screenshot_2025-08-22_at_12.58.55_PM.png?ex=68aa1db4&is=68a8cc34&hm=9ee95167a52e140eebef83893cb736ee46e8d358d944bcc49f37b783c1bcefbc&
s
Wanna hop on again
a
call: client Sonnet3_7Vertex { provider vertex-ai options { model "claude-3-7-sonnet@20250219" anthropic_version "claude-3-7-sonnet@20250219" base_url "https://us-east1-aiplatform.googleapis.com/v1/projects/opentug-ai-pipeline/locations/us-east1/publishers/anthropic/models" credentials #"{...}"# } } error message: Unspecified error code: 404 Request failed with status code: 404 Not Found, [{ "error": { "code": 404, "message": "Publisher Model
projects/opentug-ai-pipeline/locations/us-east1/publishers/anthropic/models/claude-3-7-sonnet@20250219
not found.", "status": "NOT_FOUND" } } ] Request options: {"anthropic_version":"2023-06-01","max_tokens":4096}
s
Copy code
client<llm> Sonnet3_7Vertex {
  provider vertex-ai
  options {
    model "claude-3-7-sonnet@20250219"
    anthropic_version "vertex-2023-10-16"
    base_url "https://us-east1-aiplatform.googleapis.com/v1/projects/opentug-ai-pipeline/locations/us-east1/publishers/anthropic/models"
    location "us-east1"
    credentials #"{...}"#
  }
}
Copy code
gcloud ai models list --region=us-central1 --filter="publisher='anthropic'"
Copy code
gcloud ai endpoints predict --model="anthropic"
a
@seawatts I got it to the point where the curl works but not through baml playground client: client Sonnet3_7Vertex { provider vertex-ai options { model "claude-3-7-sonnet@20250219" anthropic_version "vertex-2023-10-16" base_url "https://us-east5-aiplatform.googleapis.com/v1/projects/opentug-ai-pipeline/locations/us-east5/publishers/anthropic/models" max_tokens 8192 temperature 0 } } working curl url (equivalent of base_url): https://us-east5-aiplatform.googleapis.com/v1/projects/opentug-ai-pipeline/locations/us-east5/publishers/anthropic/models/claude-3-7-sonnet@20250219:rawPredict error message in baml playground: Unspecified error code: 2 Stream ended without response Request options: {"max_tokens":8192,"temperature":0,"anthropic_version":"vertex-2023-10-16"}
s
Thanks! Almost back I’ll take a look in a sec
Can you try changing
:rawPredict
to
:streamGenerateContent?alt=sse
a
Changing it where? the curl url is working in cli
I appended to base_url, it worked!