Skip to content

Undocumented Behavior Assistants v2 #2272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
ztat opened this issue Apr 1, 2025 · 0 comments
Open
1 task done

Undocumented Behavior Assistants v2 #2272

ztat opened this issue Apr 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ztat
Copy link

ztat commented Apr 1, 2025

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

OpenAI Python SDK v1.7.0 with the new Assistants v2 API, specifically for a Slack app that summarizes board meetings using uploaded PDFs.

The docs and SDK behavior around file_ids are confusing and inconsistent:

Using file_ids with messages.create() throws:

css
Copy
Edit
TypeError: Messages.create() got an unexpected keyword argument 'file_ids'
unless I separate it into a dedicated message with no content field.

This isn't documented anywhere.

There’s no clear end-to-end example showing how to correctly use file_search tools with uploaded files and text inputs.

SDK errors (e.g. "unexpected keyword") are misleading — the parameter is supported but context-sensitive.

Clear documentation showing how to:

Upload files

Attach files to threads/messages

Combine file_ids and content correctly (or not)

Better SDK errors (e.g. “file_ids cannot be used with content”)

To Reproduce

Clear documentation showing how to:

Upload files

Attach files to threads/messages

Combine file_ids and content correctly (or not)

Better SDK errors (e.g. “file_ids cannot be used with content”)

Code snippets

OS

macOS

Python version

python3.11

Library version

Version: 1.70.0

@ztat ztat added the bug Something isn't working label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant