Skip to content

containers.create() doesn't support skills param #2859

@levanify

Description

@levanify

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:
Image
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

  1. Install openai python sdk version 2.20.0
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions