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 credentials)

Transcribe audio based on the given parameters.

Transcribe audio based on the given parameters.
sourceraw docstring

audio-translationclj

(audio-translation params credentials)

Translate audio based on the given parameters.

Translate audio based on the given parameters.
sourceraw docstring

chatclj

(chat params credentials)

Generate a chat completion based on the given parameters.

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

completionclj

(completion params credentials)

Generate a completion based on the given parameters.

Generate a completion based on the given parameters.
sourceraw docstring

credentialsclj

(credentials api-key)
(credentials api-key org-id)

Create a credentials map with the given API key and an optional organization id.

Create a credentials map with the given API key and an optional organization id.
sourceraw docstring

editclj

(edit params credentials)

Generate an edit based on the given parameters.

Generate an edit based on the given parameters.
sourceraw docstring

embeddingclj

(embedding params credentials)

Generate an embedding based on the given parameters.

Generate an embedding based on the given parameters.
sourceraw docstring

fileclj

(file id credentials)

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 credentials)

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 credentials)

Delete a specific file by its id.

Delete a specific file by its id.
sourceraw docstring

file-upload!clj

(file-upload! params credentials)

Upload a file with the provided parameters.

Upload a file with the provided parameters.
sourceraw docstring

filesclj

(files credentials)

Retrieve the list of files associated with the provided credentials.

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

fine-tuneclj

(fine-tune id credentials)

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 credentials)

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 credentials)

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 credentials)

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 credentials)

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 credentials)

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

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

image-editclj

(image-edit params credentials)

Edit an image based on the given parameters.

Edit an image based on the given parameters.
sourceraw docstring

image-generationclj

(image-generation params credentials)

Generate an image based on the given parameters.

Generate an image based on the given parameters.
sourceraw docstring

image-variationclj

(image-variation params credentials)

Generate image variations based on the given parameters.

Generate image variations based on the given parameters.
sourceraw docstring

modelclj

(model id credentials)

Retrieve the details of a specific model by its id.

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

modelsclj

(models credentials)

Retrieve the list of available models.

Retrieve the list of available models.
sourceraw docstring

moderationclj

(moderation params credentials)

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