transitive-bullshit / OpenOpenAI

Self-hosted version of OpenAI’s new stateful Assistants API
MIT License
514 stars 44 forks source link

Body may only contain the assistant.id #10

Open OriPekelman opened 9 months ago

OriPekelman commented 9 months ago

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?