cyberchitta/openai_ex
65.0
Adequate · 15 November 2026
3.3k
lines of production code
Elixir
primary language
5
measurements over time
What this system is
Features
Add OpenAI Audio API support for speech, transcription, and translation
New modules have been added to the audio library to support OpenAI's speech, transcription, and translation endpoints. Users can now generate audio from text using the Speech API, transcribe audio files to text via the Transcription API, and translate audio into English using the Translation API. Each module provides \new/1\ for building request parameters and \create/2\ or \create!/2\ for executing the API calls, with transcription and translation handling multipart file uploads.
_lib/openai\ex/audio · high confidence
Add beta Agents and Vector Stores API support
This update introduces new modules under \lib/openai\_ex/beta\ to support OpenAI's beta Agents and Vector Stores APIs. The Agents API implementation includes modules for managing agents, sessions (with streaming support), environments, templates, vaults, and their nested resources like turns, items, and artifacts. Additionally, Vector Stores support has been added, enabling the creation and management of vector stores, files, and file batches. These changes allow users to interact with these new beta features directly through the library.
_lib/openai\ex/beta · high confidence
Added headless notebook runner script for user guide validation
A new Elixir script, \scripts/run\_notebook.exs\, has been added to execute Livebook notebooks in a headless manner. This tool parses \.livemd\ files, extracts Elixir code cells, and runs them sequentially while preserving bindings and environment state across cells. It includes retry logic for transient API errors and allows users to verify the correctness of user guide examples by running them outside the Livebook UI, with optional output visibility via the \RUNNER\_SHOW\ environment variable.
scripts · high confidence
Added sample assets for Batch API, fine-tuning, and documentation
New sample files have been added to the assets directory to support specific API features and user guides. The \batch-requests.jsonl\ file provides example payloads for the Batch API using the \gpt-4o-mini\ model, while \fine-tune.jsonl\ contains a template for fine-tuning data. Additionally, \cyberdyne.txt\ serves as a sample document for user guide demonstrations.
assets · high confidence
New and updated Livebook examples for OpenAI API features
The notebooks directory now includes a comprehensive set of executable Livebooks demonstrating OpenaiEx capabilities. A new beta\_guide.livemd provides a user guide for the Assistants, Threads, and Runs beta APIs, including examples for creating, modifying, and deleting assistants and threads. A cleanup.livemd notebook is added to help users programmatically delete files, assistants, and vector stores. The images.livemd notebook demonstrates image generation using the gpt-image-1 model. Existing examples have been updated: completions.livemd now covers the deprecated Completion API with streaming support, while dlai\_orderbot.livemd and streaming\_orderbot.livemd provide Elixir translations of the Deeplearning.AI Order Bot, with the latter adding request cancellation support. The userguide.livemd has been updated to reflect the latest API features, including the Responses API and Azure OpenAI configuration.
notebooks · high confidence
OpenAI API client library rewritten with Finch and new API support
The library has been completely rewritten to use the Finch HTTP client, introducing a new application supervision tree and standardized error handling via OpenaiEx.Error structs. This update adds support for numerous new OpenAI endpoints including Batches, Containers, Container Files, Conversations, Conversation Items, Evals, and the Responses API, while also updating Chat Completions with new parameters like reasoning models, web search, and prompt cache options. The HTTP layer now properly handles multipart form data, SSE streaming with configurable timeouts, and redacts API tokens in error logs.
_lib/openai\ex · high confidence
Behavioural changes
Major refactor of OpenaiEx client configuration and API support
The core client module has been significantly restructured to support Azure OpenAI deployments, configurable timeouts, and arbitrary HTTP headers. Users can now initialize the client with an organization and project ID, and configure receive and stream timeouts (defaulting to 15 seconds). The library adds specific helpers for Azure OpenAI integration, including path mapping for API versions and resource-specific base URLs. Additionally, the client now supports adding custom headers and allows for path mapping customization, while removing the previous simple 'hello' world function in favor of a more robust struct-based configuration system.
lib · high confidence
Migrate development environment to Livebook with updated configuration
The development container now uses the Livebook service (image 0.19.9) instead of the previous web service, changing the workspace folder to /data and exposing ports 8080, 8081, and 8000. Configuration has shifted from hardcoded values to environment variables (LIVEBOOK\_PASSWORD, OPENAI\_API\_KEY, OPENAI\_ORGANIZATION) sourced from a new .env file, and VS Code extensions were updated to include GitLens while removing SQL tools. A workaround for an Erlang DNS resolution issue was added by pinning a specific IP for raw.githubusercontent.com.
.devcontainer · high confidence
Retroactive changelog added and project documentation significantly expanded
The project now includes a comprehensive CHANGELOG.md documenting all changes from version 0.8.0 onwards, providing users with a clear history of features, fixes, and breaking changes. The README has been completely rewritten to highlight the library's battle-tested nature, Livebook-first design, and support for modern OpenAI APIs like the Responses API and Containers. Additionally, the formatter configuration was updated to enforce a 120-character line length, and the .gitignore was expanded to exclude VS Code extension directories and development secrets.
(repo-wide) · high confidence
Test coverage
Added doctests for OpenAI API modules
The test suite now includes doctests for a wide range of OpenAI API modules, including Chat.Completions, Completion, ChatMessage, Embeddings, Images.Generate, Moderations, MsgContent, Beta.Assistants, Beta.Threads.Runs, Containers, ContainerFiles, and VectorStores. This replaces the previous generic greeting test with comprehensive documentation tests for these specific components.
test · high confidence
Dependencies
106 commits updating dependencies (2 manifests)
A dependency / build maintenance change in (dependencies) — 106 commits (3 fixs), 2 files.
(dependencies) · medium confidence · unverified
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 67 → 65 (-1.8)
- Rubric changed (rubric-2026.11.1 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 99 → 95 (-4.1)
- Architecture 98 → 98 (-0.2)
- Maturity 58 → 57 (-0.6)
- Readiness 60 → 60 (+0.0)
- Security 81 → 72 (-8.9)
New (12)
- Edited copies of one member (3 members, 1+ corresponding lines) (lib/openai_ex/beta/agents/environments/files.ex)
- Edited copies of one member (3 members, 3+ corresponding lines) (lib/openai_ex/beta/agents/environments/files.ex)
- Edited copy of a member (1 corresponding lines) (lib/openai_ex/beta/agents/sessions.ex)
- Edited copy of a member (1 corresponding lines) (lib/openai_ex/beta/agents/sessions.ex)
- Edited copy of a member (2 corresponding lines) (lib/openai_ex/batches.ex)
- Edited copy of a member (2 corresponding lines) (lib/openai_ex/beta/vector_stores.ex)
- Edited copy of a member (2 corresponding lines) (lib/openai_ex/beta/vector_stores_files.ex)
- Edited copy of a member (3 corresponding lines) (lib/openai_ex/beta/agents/sessions/subagents/turns.ex)
- Edited copy of a member (3 corresponding lines) (lib/openai_ex/beta/vector_stores_file_batches.ex)
- Edited copy of a member (4 corresponding lines) (lib/openai_ex/beta/vector_stores_files.ex)
- Edited copy of a member (5 corresponding lines) (lib/openai_ex/vector_stores_file_batches.ex)
- Orphaned file (lib/openai_ex/containers.ex)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
cyberchitta/openai_ex was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 35000c0edaf45e34aff9f288620a0283897a1245 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.73+preprod-52de90b74216.