4 ms·
Ask HN: Why do I get a 404 with Google's new vertex AI?
I'm using the example curl I get from:
https://console.cloud.google.com/vertex-ai/generative/language/my-prompts/create/text?authuser=2&project=my-app
The url it makes is:
https://us-central1-aiplatform.googleapis.com/v1/projects/my-app/locations/us-central1/publishers/google/chat-bison@001:predict
but 404 every time!
(sending a POST, with auth, json, etc.)
- huksley 3y agoHave you figured it out? I have the same.
- andrewfromx 3y agonot yet, posted here: https://stackoverflow.com/questions/76248975/why-do-i-get-a-404-for-googleapis-com-v1-projects-chat-bison001predict https://stackoverflow.com/questions/76248975/why-do-i-get-a-...
- andrewfromx 3y agogot answer! https://stackoverflow.com/a/76253207/148736 https://stackoverflow.com/a/76253207/148736
- huksley 3y agoHmm, this is a summarization and classification model, not the chat model I think
- deleted 3y ago[deleted]
- huksley 3y agoGot fully working REST request <=> response but auth is need to be done in a different way because this token expires in 1 hour https://gist.github.com/huksley/9120eed9e910e63d146a9e0c7db1a4f3 https://gist.github.com/huksley/9120eed9e910e63d146a9e0c7db1...