Skip to content

R001: Provider Independence Audit #116

@sefaertunc

Description

@sefaertunc

R001: Provider Independence Audit

Type: Research / Pre-v4.1 Audit
Status: ⬜ Not Started

Description: Audit all source files for Anthropic-specific assumptions. Document exact changes needed for a second provider (OpenAI/Ollama) to plug in cleanly.

Known Anthropic-specific code:

  • config.py: anthropic_api_key hardcoded (no openai_api_key, google_api_key fields)
  • claude.py: Extended thinking logic specific to Opus
  • Model strings throughout: claude-sonnet-4-5-*, claude-haiku-4-5-*
  • Cost calculation: Pricing based on Anthropic rates

Decision needed: Multi-provider config approach:

  • Option A: Individual fields (anthropic_api_key, openai_api_key, google_api_key)
  • Option B: Dict — api_keys: dict[str, str] = {}{"anthropic": "sk-ant-...", "openai": "sk-..."}

Must complete before v4.1 multi-provider work begins.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions