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.
(audio-transcription params config)
Transcribe audio based on the given parameters.
Transcribe audio based on the given parameters.
(audio-translation params config)
Translate audio based on the given parameters.
Translate audio based on the given parameters.
(chat params config)
Generate a chat completion based on the given parameters.
Generate a chat completion based on the given parameters.
(completion params config)
Generate a completion based on the given parameters.
Generate a completion based on the given parameters.
(config & {:as params})
Create a config map for accessing the API.
Create a config map for accessing the API.
(edit params config)
Generate an edit based on the given parameters.
Generate an edit based on the given parameters.
(embedding params config)
Generate an embedding based on the given parameters.
Generate an embedding based on the given parameters.
(file id config)
Retrieve the details of a specific file by its id.
Retrieve the details of a specific file by its id.
(file-content id config)
Retrieve the content of a specific file by its id.
Retrieve the content of a specific file by its id.
(file-delete! id config)
Delete a specific file by its id.
Delete a specific file by its id.
(file-upload! params config)
Upload a file with the provided parameters.
Upload a file with the provided parameters.
(files config)
Retrieve the list of files associated with the provided config.
Retrieve the list of files associated with the provided config.
(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.
(fine-tune-cancel! id config)
Cancel a specific fine-tune by its id.
Cancel a specific fine-tune by its id.
(fine-tune-create! params config)
Create a new fine-tune with the provided parameters.
Create a new fine-tune with the provided parameters.
(fine-tune-delete! model-id config)
Delete a specific fine-tuned model by its id.
Delete a specific fine-tuned model by its id.
(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.
(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.
(image-edit params config)
Edit an image based on the given parameters.
Edit an image based on the given parameters.
(image-generation params config)
Generate an image based on the given parameters.
Generate an image based on the given parameters.
(image-variation params config)
Generate image variations based on the given parameters.
Generate image variations based on the given parameters.
(model id config)
Retrieve the details of a specific model by its id.
Retrieve the details of a specific model by its id.
(models config)
Retrieve the list of available models.
Retrieve the list of available models.
(moderation params config)
Perform content moderation with the provided parameters.
Perform content moderation with the provided parameters.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close