openai.uploads: multipart uploads and parts.openai.containers: container and file CRUD/content.openai.conversations: conversation and item CRUD.openai.skills: skills, versions, and content downloads.openai.videos: generation, remix, edit, extend, download, and characters.openai.moderations: content moderation.openai.safety: retrieve safety alerts.openai.completions: legacy text completions.Retrieve a safety alert by ID:
(require '[openai.safety :as safety])
(safety/retrieve client "safety_alert_...")
;; => {:id "safety_alert_..."
;; :created-at 1790000000.0
;; :error-type :...
;; :model "..."
;; :request-id "req_..."
;; :request-paused false
;; :response-id "resp_..."
;; :reason "..."} ; optional when reported by the API
Each list helper returns a realized vector from all pages. Binary inputs accept paths, byte arrays, and input streams where the SDK supports them.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |