on 2023 Dec 12 2:41 PM
Tutorials: https://developers-qa-blue.wcms-nonprod.c.eu-de-2.cloud.sap/tutorials/ai-core-generative-ai.html
--------------------------
In STEP 5 Querying the LLMs with Postman:
I got my deploymentUrl from the previous step.
I try a POST request to
I get a 404 Not Found response.
Same without the api-version parameter.
What is wrong?
(The Prompt Editor in the SAP AI Launchpad works fine.)
Thanks, Christian
Request clarification before answering.
Hi Christian,
Did you add the resource group header as well, for example:
curl --location 'https://api.ai.internalprod.eu-central-1.aws.ml.hana.ondemand.com/v2/inference/deployments/<deploymentId>/chat/completions?api-version=2023-05-15' \
--header 'AI-Resource-Group: default' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $TOKEN" \
--data '{
"messages": [
{
"role": "user",
"content": "Words to complete this sentence?"
}
]
}'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bingo!
You saved my day!
Thanks for your super quick answer.
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
52 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.