tyron
November 29, 2023, 5:14pm
1
If I create a GPT is it possible to reference this GPT e.g. as a parameter, when I am making requests to the completions endpoint so that it knows to use this GPT to answer the prompt I provide to the endpoint?
Or is there another way to interact with a GPT via API?
fra_ab
November 29, 2023, 6:07pm
2
By creating a GPT, I assume you mean on the ChatGPT editor here: https://chat.openai.com/gpts/editor
I believe what you’re asking isn’t possible in that way.
Instead, you would have to create an Assistant using the API (same as a custom GPT) and then use the Assistants endpoint
You can create an Assistant here: https://platform.openai.com/playground?mode=assistant
Here is the documentation for the Assistants:
https://platform.openai.com/docs/assistants/overview
And here is the API reference for the Assistants endpoint:
https://platform.openai.com/docs/api-reference/assistants
Note that you can create an Assistant in the Playground or directly in the API endpoint: https://platform.openai.com/docs/api-reference/assistants/createAssistant
1 Like
fra_ab
December 5, 2023, 4:33pm
3
More info on the difference between GPT’s and Assistants
EricGT
December 19, 2023, 2:15pm
4
As this topic has a selected solution , closing topic.