Skip to content
peter-olai edited this page May 7, 2025 · 3 revisions

LLM Interaction (LLM.py)

This page details the src/LLM.py module. For a higher-level overview of LLM integration, see LLM Integration.

The src/LLM.py file is responsible for all interactions with Large Language Models (LLMs).

Responsibilities

  • Connecting to LLM APIs (e.g., OpenAI, Hugging Face).
  • Formatting prompts.
  • Sending requests to LLMs.
  • Receiving and parsing responses.
  • Handling errors and retries.
  • Configuration for LLMs is managed via config.py.

(Describe the supported LLMs, how to configure them, and key methods for interaction.)

Clone this wiki locally