Hello everyone,
I’m working on a PowerAutomate flow, and I have an Action where I send a POST request to https://api.openai.com/v1/chat/completions in order to execute a script that looks like this:
Here I use prompt_sys and user_message just to hide the content but a String is passed there.
When I execute the flow, an error occurs and I can’t know the exact reason, but is the link im using to send the POST request is correct ?
You know, just as a formality establishing your ability to pay for services. Or just pick out what is actually needed in forming headers from the whole depending on what isn’t done for you by the the mechanism.
Thank you for your answers, actualy i found out that somehow my API key was not correctly parsed in my power automate (a \n appeared for no reason at the end of the key) so i stored the key in a variable and loaded it when sending the POST request to the endpoint and it worked.
But I have another question in the same contexte, now i know that the endpoint for chat completions is https://api.openai.com/v1/chat/completions, what is the endpoint for the vector store in order to do a vector search ? (I heard that i cannot do such thing unless i use an Assistant, so i have to replace the vector store with Pinecone or another vector DB, i want to make sure if this is correct or not?)
I think there is a misunderstanding in my last point, i asked about the endpoint used to send a POST request to the vector store, which is indepedendant from any software, and openAI has listed some of the endpoints here https://platform.openai.com/docs/api-reference/responses/create (example: POST https://api.openai.com/v1/responses)
Now im asking about the endpoint for the vector store since i can’t find it. Thank you.