Skip to content

Refactor: Unify Chat Completion Interface #14

Description

@Kirti-Rathi

Multiple API providers follow the same chat completion structure. However, the logic is duplicated across implementations. This violates the DRY principle and increases maintenance overhead.


Acceptance Criteria:

  • All supported providers follow a unified structure for chat completions
  • Duplicate code patterns across providers are eliminated
  • Existing functionality and behavior remain unchanged
  • Backwards Compatibility: Provider-specific variations (Existing behavior for model, max_tokens, temperature, and other defaults) are preserved where needed
  • Codebase is easier to maintain and extend

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

IntermediateRequires some familiarity with the codebase, and may involve logic changes.SSoC25Part of Social Summer of Code 2025. Tag for recognition.enhancementNew feature or requestgood first issueGood for newcomers

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions