Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

List models #14

@the-gigi

Description

@the-gigi

Is your feature request related to a problem? Please describe.

It looks like there is no way to list the models.

See https://platform.openai.com/docs/api-reference/models

Describe the solution you'd like
I would like a listModels() method that returns all the models.

Describe alternatives you've considered
I can get it myself using any HTTP client, but it breaks the experience of working with a Java library that wraps an API.

The other alternative is of course to use another library :-)

Additional context

btw, the terminology of openai4j, which uses Model to describe its domain objects: ChatCompletionModel, ImageCompletionModel, etc is confusing when dealing with language models. Ideally , there shouldn't be overloading of the term Model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions