second-opinion-ai / second-opinion

7 stars 0 forks source link

Generalize API calls for LLM integration #29

Closed branhoff closed 5 months ago

branhoff commented 7 months ago

Description:

The current implementation in our system is tightly coupled with OpenAI's GPT models and a specific set of tools for car diagnostics. To improve our system's flexibility and facilitate local development/testing, we aim to generalize the API calls to be adaptable with any LLM.

Acceptance Criteria

  1. Refactor LLM Interaction Code:
    • Abstract the LLM interaction logic into a separate module that can interface with any LLM, not just OpenAI's GPT.
    • Ensure that the new module can dynamically switch between LLMs based on configuration without changing the codebase.

Code Specific Guidance: