hot.dev/openai — OpenAI API bindings for Hot. Includes Chat Completions, Models, Embeddings, Images (DALL-E), Audio (TTS), and Moderations APIs.
Add to your project
"hot.dev/openai": "1.0.5"
Add this to your deps in hot.hot
Namespaces
::openai
| Namespace | Functions | Types | Description |
|---|---|---|---|
::activate | 2 | 7 | POST /organization/certificates/activate - Activate certificates for organization |
::add | 1 | 4 | POST /uploads/{upload_id}/parts - Add a part to a multi-part upload. |
::api | 2 | 1 | Make an HTTP request with pre-filled service headers. |
::audio | 2 | 5 | OpenAI Audio API - Text-to-speech and speech-to-text. |
::cancel | 7 | 37 | POST /batches/{batch_id}/cancel - Cancel an in-progress batch. |
::chat | 8 | 11 | Create a chat completion (non-streaming). |
::complete | 1 | 4 | POST /uploads/{upload_id}/complete - Complete a multi-part upload by providing the ordered list of part IDs. |
::containers | 9 | 24 | GET /containers - List all containers. |
::create | 26 | 135 | POST /assistants - Create an assistant with instructions and tools. |
::deactivate | 2 | 7 | POST /organization/certificates/deactivate - Deactivate certificates for organization |
::delete | 13 | 37 | DELETE /assistants/{assistant_id} - Permanently delete an assistant. |
::download | 1 | 2 | GET /files/{file_id}/content - Download the contents of an uploaded file. |
::embeddings | 2 | 4 | OpenAI Embeddings API - Generate vector embeddings from text. |
::get | 17 | 65 | GET /assistants/{assistant_id} - Retrieve an assistant by its ID. |
::images | 8 | 9 | Generate images from a text prompt using DALL-E. |
::invite | 1 | 4 | POST /organization/invites - Invite a user to the organization by email. |
::list | 19 | 93 | GET /assistants - List all assistants. |
::models | 2 | 2 | OpenAI Models API - List and retrieve available models. |
::moderations | 2 | 5 | OpenAI Moderations API - Check content for harmful material. |
::modify | 6 | 33 | POST /assistants/{assistant_id} - Update an assistant's configuration (model, name, instructions, tools, etc.). |
::organization | 40 | 122 | GET /organization/admin_api_keys - List all organization and project API keys. |
::pause | 1 | 11 | POST /fine_tuning/jobs/{fine_tuning_job_id}/pause - Pause a running fine-tuning job. |
::realtime | 2 | 9 | POST /realtime/sessions - Create a realtime session for audio/text conversations with GPT-4o models. |
::resume | 1 | 11 | POST /fine_tuning/jobs/{fine_tuning_job_id}/resume - Resume a paused fine-tuning job. |
::retrieve | 5 | 24 | GET /batches/{batch_id} - Retrieve the status and details of a batch. |
::run | 1 | 4 | POST /fine_tuning/alpha/graders/run - Run a grader to evaluate model samples for reinforcement fine-tuning. |
::search | 1 | 7 | POST /vector_stores/{vector_store_id}/search - Search a vector store for relevant file content using semantic search. |
::submit | 1 | 10 | POST /threads/{thread_id}/runs/{run_id}/submit_tool_outputs - Submit tool call outputs to continue a run that requires action. |
::update | 3 | 15 | POST /chat/completions/{completion_id} - Update metadata on a stored chat completion. |
::upload | 1 | 4 | POST /organization/certificates - Upload a TLS certificate for the organization. |
::validate | 1 | 4 | POST /fine_tuning/alpha/graders/validate - Validate a grader configuration before using it in fine-tuning. |