chore: remove OpenAI provider and [openai] extra#6
Merged
Conversation
Per user vendor-preference decision: drop OpenAI as a supported
provider in attune-rag. Pre-removal grep confirmed no external
consumer (attune-ai, attune-author, attune-help, home Next.js app)
imports OpenAIProvider — the provider is fully removable without
callsite migrations.
- Delete src/attune_rag/providers/openai.py and its unit tests
- Drop the openai branch in providers.get_provider()
- Drop "openai" from _SDK_PROBES (no longer reported by list_available)
- Drop the [openai] install extra from pyproject.toml; remove
openai>=1.40.0 from [all] and [dev]
- Update CLI: --provider choices, install hint
- Update README: drop OpenAI quickstart, install line, description
- Update docstrings (pipeline.run_and_generate, base.LLMProvider)
- CHANGELOG entry under [Unreleased]
Test plan: 298 passed, 3 xpassed (full suite); 14/14 providers tests
pass with the dispatch test updated to reflect the new {claude, gemini}
contract.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Drops the OpenAI provider per a vendor-preference decision in the broader API cost audit. No external consumer of attune-rag imports
OpenAIProvider— confirmed by grepping attune-ai, attune-author, attune-help, and the home Next.js app. So the provider is fully removable without migrating any callsite.What's gone
src/attune_rag/providers/openai.pyand its unit testsopenaibranch inproviders.get_provider()"openai"in_SDK_PROBES(no longer reported bylist_available())[openai]install extra (pip install 'attune-rag[openai]'no longer works)openai>=1.40.0,<2.0from the[all]and[dev]deps listsWhat stayed
.help/templates/— those'll refresh on the next regen.CHANGELOG entry
Under
[Unreleased]:Test plan
pytest --no-cov -q— 298 passed, 3 xpassedOpenAIProviderusage[openai]extra🤖 Generated with Claude Code