voiio / Sam

Sam – cuz your company is nothing without Sam
https://code.voiio.de/Sam/
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

BadRequestError: Error code: 400 - {'error': {'message': 'Files with extensions [.png] are not supported for retri... #82

Closed sentry-io[bot] closed 6 months ago

sentry-io[bot] commented 6 months ago

Sentry Issue: VOIIO-SAM-P

BadRequestError: Error code: 400 - {'error': {'message': 'Files with extensions [.png] are not supported for retrieval. See https://platform.openai.com/docs/assistants/tools/supported-files', 'type': 'invalid_request_error', 'param': None, 'code': 'unsupported_file'}}
(3 additional frame(s) were not displayed)
...
  File "sam/slack.py", line 82, in handle_message
    has_attachments, has_audio = await bot.add_message(
  File "sam/bot.py", line 248, in add_message
    await client.beta.threads.messages.create(

Failed to run listener function (error: Error code: 400 - {'error': {'message': 'Files with extensions [.png] are not supported for retrieval. See https://platform.openai.com/docs/assistants/tools/supported-files', 'type': 'invalid_request_error', 'param': None, 'code': 'unsupported_file'}})