All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.aallam.openai.client.Models.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0-beta01
Show newest version
package com.aallam.openai.client

import com.aallam.openai.api.model.Model
import com.aallam.openai.api.model.ModelId

/**
 * List and describe the various models available in the API.
 * You can refer to the [Models](https://beta.openai.com/docs/models) documentation to understand what models are
 * available and the differences between them.
 */
public interface Models {

    /**
     * Lists the currently available models, and provides basic information about each one
     * such as the owner and availability.
     */
    public suspend fun models(): List

    /**
     * Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
     */
    public suspend fun model(modelId: ModelId): Model
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy