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 credentials)
Transcribe audio based on the given parameters.
Transcribe audio based on the given parameters.
(audio-translation params credentials)
Translate audio based on the given parameters.
Translate audio based on the given parameters.
(chat params credentials)
Generate a chat completion based on the given parameters.
Generate a chat completion based on the given parameters.
(completion params credentials)
Generate a completion based on the given parameters.
Generate a completion based on the given parameters.
(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.
(edit params credentials)
Generate an edit based on the given parameters.
Generate an edit based on the given parameters.
(embedding params credentials)
Generate an embedding based on the given parameters.
Generate an embedding based on the given parameters.
(file id credentials)
Retrieve the details of a specific file by its id.
Retrieve the details of a specific file by its id.
(file-content id credentials)
Retrieve the content of a specific file by its id.
Retrieve the content of a specific file by its id.
(file-delete! id credentials)
Delete a specific file by its id.
Delete a specific file by its id.
(file-upload! params credentials)
Upload a file with the provided parameters.
Upload a file with the provided parameters.
(files credentials)
Retrieve the list of files associated with the provided credentials.
Retrieve the list of files associated with the provided credentials.
(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.
(fine-tune-cancel! id credentials)
Cancel a specific fine-tune by its id.
Cancel a specific fine-tune by its id.
(fine-tune-create! params credentials)
Create a new fine-tune with the provided parameters.
Create a new fine-tune with the provided parameters.
(fine-tune-delete! model-id credentials)
Delete a specific fine-tuned model by its id.
Delete a specific fine-tuned model by its id.
(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.
(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.
(image-edit params credentials)
Edit an image based on the given parameters.
Edit an image based on the given parameters.
(image-generation params credentials)
Generate an image based on the given parameters.
Generate an image based on the given parameters.
(image-variation params credentials)
Generate image variations based on the given parameters.
Generate image variations based on the given parameters.
(model id credentials)
Retrieve the details of a specific model by its id.
Retrieve the details of a specific model by its id.
(models credentials)
Retrieve the list of available models.
Retrieve the list of available models.
(moderation params credentials)
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