Hello,
My use case: I want to create a website for users to engage with an unbiased chat Assistant that is made to answers questions specific to a gigantic political document. I want to have it embedded on a public website to use so that it is accessible and people are not required to have an OpenAI account to use it.
My issue: I’ve created the website and chat window that can successfully call OpenAI via Chat API and get a response, but when I change the “model:” from “gpt-4o-mini” to my Assistant ID (this is what is suggested to me by GPT, bc alas I am not an experienced developer) I get an error “the model does not exist or you do not have access to it.”
I can not tell from forum responses or documentation if I can actually use the Chat API to communicate with an Assistant I’ve already built, or if I need to use the Assistant API to do that. From what I’ve read, the Assistant API, with threads, is for more complex problem solving.
- Am I missing something by trying to send the Assistant ID in “model:” or should this work if my API key, Assistant ID, and permissions are correct?
- Any creative solutions? Maybe I could use Completions, and make sure some of the model directions are embedded in my POST?
I have the gpt-4o-mini Assistant built and works well in my playground Q&A, which is why I am trying to use it. I think I have exhausted Chat GPT as my coding partner on this one, since I keep going in circles testing the API and it insists I can use “model:” for the Assistant ID value or the model of the GPT.