OpenOpenAI icon indicating copy to clipboard operation
OpenOpenAI copied to clipboard

Body may only contain the assistant.id

Open OriPekelman opened this issue 2 years ago • 0 comments

When I tried using the project I encountered exceptions in run.ts in prisma.run.create complaining that instructions and model are not set (in effect in my API call using the official OpenAI Python client the instructions and models are not passed, only the assistant_id). My calling code is as follows:

        run = self.client.beta.threads.runs.create(thread_id=thread_id, assistant_id=self.assistant_id)

I believe it is more correct to read those from the assistant that has already been created and hydrated a few lines above?

OriPekelman avatar Jan 10 '24 14:01 OriPekelman