Skip to content

feat: add OpenAI provider support - #96

Open
sakibalig wants to merge 1 commit into
feat/provider-neutral-model-roles-foundationfrom
feat/openai-provider-support
Open

sakibalig wants to merge 1 commit into
feat/provider-neutral-model-roles-foundationfrom
feat/openai-provider-support

Conversation

@sakibalig

@sakibalig sakibalig commented Aug 24, 2026 •

Copy link
Copy Markdown

Summary

Add OpenAI as a first-class Fathom model provider on top of the provider-neutral role contracts in PR #95.

Problem

Fathom was wired around Gemini-specific prompts, tool envelopes, SDK responses, credentials, and vision localization. Selecting an OpenAI model therefore could not provide a comparable execution path or trustworthy model-role provenance.

What changed

  • Added an async OpenAI Chat Completions adapter with multimodal prompts, tool calls, strict structured output, retries, usage metrics, and cleanup.
  • Added explicit OpenAI provider, key, and model configuration.
  • Added OpenAI prompt builders and provider selection that fails closed for undeclared non-Gemini models.
  • Added a canonical provider-neutral tool contract with separate Gemini and OpenAI wire dialects.
  • Generalized the LLM-backed vision localizer so it uses the adapter bound to the run.
  • Added a local noop interaction backend for standalone runs.
  • Records effective inference controls honestly: OpenAI-managed cache is unknown, and reasoning-model temperature is unknown when it is not sent.
  • Added unit coverage for provider configuration, prompt selection, tool translation, multimodal requests, structured outputs, usage normalization, and effective identity.

Scope

This PR does not include strict UI-grounding policy changes or user documentation; those are in PRs #97 and #98.

Validation

  • 2,269 tests passed; 250 optional/live tests skipped.
  • Ruff, formatting, and whitespace checks passed locally.
  • No credentials, screenshots, logs, or generated run artifacts are included.

Stack

Base: feat/provider-neutral-model-roles-foundation (PR #95)
Follow-up: fix/provider-neutral-ui-grounding (PR #97)

@sakibalig
sakibalig requested a review from aman-drizz as a code owner August 24, 2026 13:22
Signed-off-by: Sakib Khan <sakibalig2003@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant