Overview of LLM4Free components and architecture
mainLLM4Free is a modular ecosystem designed to provide access to various LLM, TTS (Text-to-Speech), TTI (Text-to-Image), and STT (Speech-to-Text) providers. The project is organized into several core functional areas:
- Unified Python Client (
llm4free/client.py): A high-level client providing intelligent provider/model resolution and automatic failover for chat and image tasks. - Command Line Interface (
llm4free/cli.py): A rich CLI (built onswiftcli) for interacting with search engines (DuckDuckGo, Bing, etc.), weather utilities, and other tools. - OpenAI-compatible API Server (
llm4free/server/): A FastAPI-based server that proxies LLM4Free providers using the OpenAI API format. - Search Stack (
llm4free/search/): Shared abstractions for engines includingddg(DuckDuckGo),bing,yahoo,brave,mojeek,wikipedia, andserpbase. - Provider Implementations (
llm4free/llm/): Contains both no-auth and authenticated providers (underllm4free/llm/Auth/), covering AI search, TTI, TTS, and STT. - Auxiliary Toolkits (
llm4free/Extra/): Includes GGUF conversion, weather clients, temp mail, and Git/YouTube utilities. - Scout (
llm4free/scout): An HTML parser and crawler module. - Media Generation: Dedicated modules for
TTI,TTS, andSTT.