Skip to content

[bug] mkdocstrings-python not publishing docstrings for function overloads #7

Closed
@mmacy

Description

@mmacy

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

Integrated mkdocstrings-insiders in #1 to get chat.completions.create() function signature overloads published, but the docstrings for the overloads aren't being published. To get docstrings to publish at all, I had to add docs to the overloaded function.

Not sure whether this is as-designed, expected, or a bug in mkdocstrings, but it warrants investigation. To note, the signatures for the overloads ARE published as expected (they weren't before moving to -insiders), but not their docstrings.

At the very least, I need to take a good look at chat.completions.create() and see how best to workaround it. Right now I'm likely not listing everything that needs listing in the attribute or arg lists for the overloaded create() function.

To Reproduce

  1. Use computer
  2. Profit

Code snippets

No response

OS

macOS

Python version

Python 3.11.7

Library version

openai v1.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions