Closed runninghare closed 1 week ago
@runninghare thanks for opening this issue, I'll have a look!
Repro and fix here - https://github.com/datastax/astra-assistants-api/tree/issue-69
pesky route order issue.
Will cut a release and ship soon, likely tonight.
Fixed in v0.2.28 shipped to docker hub and deployed to service
This can be repliated with a simple piece of snippet on any known assitant Id.
The error message is:
openai.InternalServerError: Error code: 500 - {'message': '1 validation error for ThreadObject\ncreated_at\n Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n For further information visit https://errors.pydantic.dev/2.8/v/int_type'}
It looks like client.beta.threads.create_and_run is sending a POST request to '/threads/runs', however on the server there seems to be a conflict on routing. The actual request was sent to:
see: .../packages/openai/resources/beta/threads/threads.py