Im getting 404 error while trying to connect to hps://api.openai.com/v1/assistants/asst_m************DG/messages.
error at Chrome Console:
POST h**ps://api.openai.com/v1/assistants/asst_m**************DG/messages 404 (Not Found)
Code of my app:
const response = await fetch("hps://api.openai.com/v1/assistants/asst_m**************DG/messages", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer sk-W*********************f",
},
body: JSON.stringify({
name: "test2",
insturctions: "you are super happy about anything",
model: "gpt-4-1106-preview",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: question },
],
}),
});
error at POSTMAN:
{
"error": {
"message": "Invalid URL (POST /v1/assistants/asst_m**************DG/messages)",
"type": "invalid_request_error",
"param": null,
"code": null
}
}