Hello, Python beginner here.
I am trying to create a chatbot using openai (assistants api) + python
But getting an error "The model asst_XXXXXXXX does not exist"
My code is here, I do not know what to do.
import openai
openai.api_key = "APIKEY"
def chatbot_my(conversation_history, assistant_id):
response = openai.chat.completions.create(
model=assistant_id,
messages=conversation_history
)
return response.choices[0].message.content.strip()