Liking cljdoc? Tell your friends :D

Admin

openai.admin covers organization resources and usage. openai.admin.projects covers project-scoped API keys, service accounts, limits, permissions, users, groups, roles, retention, spend alerts, and certificates.

Admin wrappers take positional resource IDs such as project, group, user, and role. They then take a kebab-case map for optional body or query values. This matches the other library functions.

Organization spend limits use spend-limit-retrieve, spend-limit-update, and spend-limit-delete. Project spend limits use the same functions in openai.admin.projects, with a project ID. Use service-account-api-key-create with project and service-account IDs to create a service-account API key.

(admin/project-create client {:name "research"})
(admin/group-role-create client "group_..." {:role-id "role_..."})
(admin/group-user-retrieve client "group_..." "user_...")
(admin-projects/user-list client "proj_..." {:limit 20})

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close