-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Document shows this:

Source: https://developers.openai.com/api/docs/guides/tools-shell#attach-skills
However, while using the latest openai python sdk (version: 2.20.0), I get this error while making the call:
TypeError: Containers.create() got an unexpected keyword argument 'skills'
Checking the source code, containers.create() doesn't actually support skills param
def create(
self,
container_id: str,
*,
file: FileTypes | Omit = omit,
file_id: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> FileCreateResponse:
Would the python sdk be updated to align with the documentation?
To Reproduce
- Install openai python sdk version 2.20.0
- Create a container
container = client.containers.create(
name="skill-container",
memory_limit="1g",
skills=[
{ "type": "skill_reference", "skill_id": "openai-spreadsheets", "version": "latest" },
]
)
OS
macOS
Python version
Python v3.11.12
Library version
openai v2.20.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working