Release notes
0.1.0
OpenAI Erlang SDK is an unofficial library from Scalicon (SCALICON INC.) for Erlang/OTP applications using the OpenAI API.
Main features
- Responses and Chat Completions: request/response APIs, stored-resource operations, conversation input and output access, plus the legacy Completions resource. Availability and mode support are documented per method.
- Streaming and parsing: SSE event streams, response accumulators, structured parsing with schema descriptors and application validators, and tool-call arguments/results interfaces. Tool calls are exposed to the application; the SDK does not execute tools automatically or provide built-in Pydantic validation.
- Basic resources: Models, Embeddings, Moderations and Files, including decoded binary content and optional raw/Body access where supported.
- Media and uploads: speech generation, audio transcription, custom voices and voice consents, image generation and editing, multipart sources, and chunked Upload workflows.
- Batch and retrieval workflows: Batches, fine-tuning, Vector Stores, file batches, search, and explicit polling/upload helpers.
- Platform resources: Containers and their files, Conversations and items, Decisions, Skills and versions, content-provenance checks, grader interfaces, Live/session operations, Realtime client secrets and Safety resources.
- Organization administration: organization/project resources, users, groups, roles, credentials, settings and usage endpoints through the documented resource methods. Access depends on credentials and permissions.
- Realtime and webhooks: raw Realtime WebSocket connections, HTTP SDP signaling and call-control operations, and verification of webhook signatures against the original payload bytes. No media engine is included.
- Shared SDK facilities: immutable Client configuration, API-key callbacks, admin authentication, supported AWS/Google HTTP providers and workload identity flows, phase timeouts, retries, lazy pagination, metadata and serialization. Response is an immutable buffered value and does not need closing. Body and Stream are resource handles with ownership and cleanup rules. Public helpers compose parsing, polling, upload and iteration workflows.
See the API reference, public helpers, Python/Erlang mapping and runnable examples for supported methods and usage.
Installation and requirements
Erlang/OTP 27 or later is required, including the built-in json module.
The configured CI matrix covers OTP 27, 28 and 29.
The Hex package name is openai_erlang; the OTP application is openai
and the module prefix is openai. See installation
for rebar3, Erlang.mk and Mix configuration.
Compatibility and verification
The behavioral reference is the official OpenAI Python SDK 3.52.0, pinned to
311924f055110122991cc23b988a1836793551a1.
Verification combines local integration tests, comparisons against that reference,
and live end-to-end requests through the public Erlang API. Live comparisons use
curl and the Python SDK where applicable; offline comparisons also process the
same captured responses. These checks have distinct coverage and do not establish
positive live verification of every method, mode or provider.
Speech generation and audio transcriptions have been checked live. This does not establish positive live coverage of all custom voice/consent methods or a complete Realtime voice conversation.
See Compatibility and contracts for intentional differences and the limits of the OpenAPI comparison.
Significant limitations
- Fixed HTTP-context capacity: each shared HTTP context admits up to 8 ordinary
requests and tracks up to 8 connection entries (
MAX_LEASES = 8). Exhaustion returnscapacity_exceeded; there is no waiting queue. Body/Stream handles can retain request admission while they own network resources; a completed cache or cursor alone does not retain it after confirmed network cleanup. Idle connections still count toward the separate connection-entry budget. This is not a limit of eight chats or eight Clients across an application. See HTTP context capacity for sharing, cleanup and connection-reuse rules. - Shared Client lifetime:
openai:copy/2andopenai:with_options/2share their originating HTTP context. Closing one of these handles closes that shared context. Useopenai:new/1for an independent context; see lifetime and ownership. - Buffered-body boundaries: legacy buffered normal/raw paths, including
Responses create and generic buffered list Pages, retain an internal 1 MiB
body/decoder limit. Explicit
body_limitsdo not behave identically on every path. Supported Body paths allow progressive reads without a default aggregate byte cap; full read/parse still materializes the body. Media paths can use Body internally. See bytes and limits rather than assuming one limit for all modes. - Realtime scope: raw WSS has no typed event models/helpers or automatic reconnect. HTTP signaling does not provide a WebRTC media engine or a complete typed Realtime/WebRTC/SIP workflow. See raw WSS and platform operations.
- Webhook scope: signature verification is available;
unwrapand typed webhook event models are not. See webhooks. - Authentication and providers: executable AWS
credential_processand Google executable sources, AWS AssumeRole with MFA, and automatic provider/ workload authentication for WebSocket connections are not implemented. Application credential callbacks, ordinary AssumeRole and the documented Kubernetes/Azure/GCP workload identity flows are separate supported facilities. A dedicated Azure OpenAI client with deployment/API-version routing is absent. See authentication and Azure OpenAI. - Service coverage: implementation and local tests do not guarantee account access or positive live coverage. Some operations require administrative scopes, cloud infrastructure, consent recordings or an available service. See remaining limitations.
0.1.0 scope — deprecated API exclusion
The first release excludes 24 HTTP operations marked deprecated: true in the
OpenAI OpenAPI specification reviewed on 2026-12-01:
- Audio translations: create (1 operation).
- Evals, Eval Runs and Run output items (12 operations).
- Image variations: create_variation (1 operation).
- Videos/Sora (10 operations), plus the dependent poll and create_and_poll helpers.
These APIs are excluded from the scope of the first public release, not breaking changes relative to a previously published version. Complete reproduction of deprecated parts of the pinned Python SDK is not a goal of this release. No replacement or request redirection is introduced.
Speech, audio transcriptions, image editing/generation, legacy completions and Files content remain in scope. This scope decision does not resolve unrelated service-availability or live-verification limitations.
Documentation and contributions
Start with the README and examples guide, then consult the API, helpers, contracts and mapping.
Scalicon welcomes bug reports and community contributions. Read the contribution guide and use GitHub Issues to report bugs or request features. Scalicon is committed to reviewing issues and pull requests and merging suitable contributions.