Liking cljdoc? Tell your friends :D

me.pmatiello.openai-api.api

This namespace provides a wrapper around the OpenAI API, offering various functions for interacting with the API's capabilities. These include text generation, image generation and editing, embeddings, audio transcription and translation, file management, fine-tuning, and content moderation.

Refer to the function specs and the official OpenAI documentation for details about the parameters required for these functions.

This namespace provides a wrapper around the OpenAI API, offering various
functions for interacting with the API's capabilities. These include text
generation, image generation and editing, embeddings, audio transcription
and translation, file management, fine-tuning, and content moderation.

Refer to the function specs and the official OpenAI documentation for
details about the parameters required for these functions.
raw docstring

audio-transcriptionclj

(audio-transcription params config)

Transcribe audio based on the given parameters.

Transcribe audio based on the given parameters.
sourceraw docstring

audio-translationclj

(audio-translation params config)

Translate audio based on the given parameters.

Translate audio based on the given parameters.
sourceraw docstring

chatclj

(chat params config)

Generate a chat completion based on the given parameters.

Generate a chat completion based on the given parameters.
sourceraw docstring

completionclj

(completion params config)

Generate a completion based on the given parameters.

Generate a completion based on the given parameters.
sourceraw docstring

configclj

(config & {:as params})

Create a config map for accessing the API.

Create a config map for accessing the API.
sourceraw docstring

editclj

(edit params config)

Generate an edit based on the given parameters.

Generate an edit based on the given parameters.
sourceraw docstring

embeddingclj

(embedding params config)

Generate an embedding based on the given parameters.

Generate an embedding based on the given parameters.
sourceraw docstring

fileclj

(file id config)

Retrieve the details of a specific file by its id.

Retrieve the details of a specific file by its id.
sourceraw docstring

file-contentclj

(file-content id config)

Retrieve the content of a specific file by its id.

Retrieve the content of a specific file by its id.
sourceraw docstring

file-delete!clj

(file-delete! id config)

Delete a specific file by its id.

Delete a specific file by its id.
sourceraw docstring

file-upload!clj

(file-upload! params config)

Upload a file with the provided parameters.

Upload a file with the provided parameters.
sourceraw docstring

filesclj

(files config)

Retrieve the list of files associated with the provided config.

Retrieve the list of files associated with the provided config.
sourceraw docstring

fine-tuneclj

(fine-tune id config)

Retrieve the details of a specific fine-tune by its id.

Retrieve the details of a specific fine-tune by its id.
sourceraw docstring

fine-tune-cancel!clj

(fine-tune-cancel! id config)

Cancel a specific fine-tune by its id.

Cancel a specific fine-tune by its id.
sourceraw docstring

fine-tune-create!clj

(fine-tune-create! params config)

Create a new fine-tune with the provided parameters.

Create a new fine-tune with the provided parameters.
sourceraw docstring

fine-tune-delete!clj

(fine-tune-delete! model-id config)

Delete a specific fine-tuned model by its id.

Delete a specific fine-tuned model by its id.
sourceraw docstring

fine-tune-eventsclj

(fine-tune-events id config)

Retrieve the list of events for a specific fine-tune by its id.

Retrieve the list of events for a specific fine-tune by its id.
sourceraw docstring

fine-tunesclj

(fine-tunes config)

Retrieve the list of fine-tunes associated with the provided config.

Retrieve the list of fine-tunes associated with the provided config.
sourceraw docstring

image-editclj

(image-edit params config)

Edit an image based on the given parameters.

Edit an image based on the given parameters.
sourceraw docstring

image-generationclj

(image-generation params config)

Generate an image based on the given parameters.

Generate an image based on the given parameters.
sourceraw docstring

image-variationclj

(image-variation params config)

Generate image variations based on the given parameters.

Generate image variations based on the given parameters.
sourceraw docstring

modelclj

(model id config)

Retrieve the details of a specific model by its id.

Retrieve the details of a specific model by its id.
sourceraw docstring

modelsclj

(models config)

Retrieve the list of available models.

Retrieve the list of available models.
sourceraw docstring

moderationclj

(moderation params config)

Perform content moderation with the provided parameters.

Perform content moderation with the provided parameters.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close