我已经通过OpenAI的网络界面(https://chat.openai.com/gpts/editor)创建了一个自定义的GPT。
创建后,我想通过助手API(https://platform.openai.com/docs/api-reference/assistants/getAssistant)访问这个GPT。
API示例是 GET https://api.openai.com/v1/assistants/{assistant_id}
当我尝试使用GPT URL中的ID,例如从 https://chat.openai.com/gpts/editor/abcdefg 中获取的’abcdefg’时,API返回“未找到ID为’abcdefg’的助手”。
是否可以使用助手API访问通过网络界面创建的GPT?如果可以,我如何确定 assistant_id
?
回答:
尽管GPTs和助手API的目标相同,但它们似乎是两种不同的东西。
因此,您无法通过助手API访问通过网络界面创建的GPTs。