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

commonMain.com.aallam.openai.client.internal.OpenAIApi.kt Maven / Gradle / Ivy

The newest version!
package com.aallam.openai.client.internal

import com.aallam.openai.client.*
import com.aallam.openai.client.internal.api.*
import com.aallam.openai.client.internal.http.HttpRequester

/**
 * Implementation of [OpenAI].
 *
 * @param requester http transport layer
 */
internal class OpenAIApi(
    private val requester: HttpRequester
) : OpenAI,
    Completions by CompletionsApi(requester),
    Files by FilesApi(requester),
    Edits by EditsApi(requester),
    Embeddings by EmbeddingsApi(requester),
    Models by ModelsApi(requester),
    Moderations by ModerationsApi(requester),
    FineTunes by FineTunesApi(requester),
    Images by ImagesApi(requester),
    Chat by ChatApi(requester),
    Audio by AudioApi(requester),
    FineTuning by FineTuningApi(requester),
    Assistants by AssistantsApi(requester),
    Threads by ThreadsApi(requester),
    Runs by RunsApi(requester),
    Messages by MessagesApi(requester),
    VectorStores by VectorStoresApi(requester),
    Batch by BatchApi(requester),
    AutoCloseable by requester




© 2015 - 2024 Weber Informatics LLC | Privacy Policy