hot.dev/openai — OpenAI API bindings for Hot: Chat Completions (with a hot-ai tools adapter), Responses, Models, Embeddings, Images, Audio, Moderations, Files, Batches, Vector Stores and more. A configurable base URL and explicit endpoints let the same adapter drive any OpenAI-compatible server (Ollama, vLLM, Groq, OpenRouter, ...).

Version: 1.3.4

Author: Hot Dev

License: Apache-2.0

Add to your project

"hot.dev/openai": "1.3.4"

Add this to your deps in hot.hot

Namespaces

NamespaceFunctionsTypesDescription
::openai0—

::openai

NamespaceFunctionsTypesDescription
::activate28POST /organization/certificates/activate - Activate certificates for
::add14POST /uploads/{upload_id}/parts - Add a part to a multi-part upload.
::api212Transport for the OpenAI API and OpenAI-compatible servers: bearer auth,
::audio25OpenAI Audio API - Text-to-speech and speech-to-text.
::cancel743POST /batches/{batch_id}/cancel - Cancel an in-progress batch.
::chat1011Create a chat completion (non-streaming).
::chat-tools171OpenAI adapter that satisfies the `::ai::chat/run-loop` contract:
::compatible132Point the OpenAI chat-tools adapter at any OpenAI-compatible server
::complete15POST /uploads/{upload_id}/complete - Complete a multi-part upload by
::containers924GET /containers - List all containers.
::create26150POST /assistants - Create an assistant with instructions and tools.
::deactivate28POST /organization/certificates/deactivate - Deactivate certificates for
::delete1337DELETE /assistants/{assistant_id} - Permanently delete an assistant.
::download12GET /files/{file_id}/content - Download the contents of an uploaded
::embeddings24OpenAI Embeddings API - Generate vector embeddings from text.
::get1772GET /assistants/{assistant_id} - Retrieve an assistant by its ID.
::images89Generate images from a text prompt using DALL-E.
::invite16POST /organization/invites - Invite a user to the organization by email.
::list19108GET /assistants - List all assistants.
::models22OpenAI Models API - List and retrieve available models.
::moderations25OpenAI Moderations API - Check content for harmful material.
::modify637POST /assistants/{assistant_id} - Update an assistant's configuration
::organization40128GET /organization/admin_api_keys - List all organization and project API
::pause114POST /fine_tuning/jobs/{fine_tuning_job_id}/pause - Pause a running
::realtime29POST /realtime/sessions - Create a realtime session for audio/text
::resume114POST /fine_tuning/jobs/{fine_tuning_job_id}/resume - Resume a paused
::retrieve530GET /batches/{batch_id} - Retrieve the status and details of a batch.
::run14POST /fine_tuning/alpha/graders/run - Run a grader to evaluate model
::search17POST /vector_stores/{vector_store_id}/search - Search a vector store for
::submit110POST /threads/{thread_id}/runs/{run_id}/submit_tool_outputs - Submit
::update316POST /chat/completions/{completion_id} - Update metadata on a stored
::upload15POST /organization/certificates - Upload a TLS certificate for the
::validate14POST /fine_tuning/alpha/graders/validate - Validate a grader