datastax / astra-assistants-api

Drop in replacement for the OpenAI Assistants API
Apache License 2.0
142 stars 17 forks source link

Validation errors #38

Closed morfeusys closed 3 months ago

morfeusys commented 3 months ago

If I create thread with await this.openai.beta.threads.create() then await this.openai.beta.threads.retrieve(threadId) fails with

ERROR - Unexpected error: 1 validation errors: {'type': 'missing', 'loc': ('response', 'tool_resources'), 'msg': 'Field required', 'input': ThreadObject(id='18f14d98-25c2-11ef-825c-0242ac110003', object='thread', created_at=1717870104000, metadata={})}

Why do you need any validations here that breaks API?

phact commented 3 months ago

Hi @morfeusys, welcome, thanks for submitting this!

I actually just ran into the same bug and have a fix that's currently being tested. Will update later today when we ship the fix.

phact commented 3 months ago

updated the test here green CI here shipped [both to dockerhub and to the service] in: v0.2.4