Basic chain-of-thought reasoning demo with any LLM supporting OpenAI-compatible API
Top 85.7% on sourcepulse
This project provides a lightweight, proof-of-concept PHP web application for demonstrating basic chain-of-thought (CoT) reasoning with any Large Language Model (LLM) supporting an OpenAI-compatible API. It's designed for developers and researchers looking to quickly experiment with CoT capabilities across various local or remote LLM providers without complex setup.
How It Works
ReflectionAnyLLM uses a PHP backend (chat.php
) to interact with LLMs via their OpenAI-compatible API endpoints. It dynamically generates reasoning steps, allowing the LLM to break down problems. A summary of the thought process is displayed by default, with an option to view the full details. The application maintains a history of the last 30 messages for context.
Quick Start & Requirements
index.html
and chat.php
into your web server's public directory (e.g., XAMPP's htdocs/
).curl
extension enabled.chat.php
. Access via http://localhost/
or your domain.Highlighted Details
Maintenance & Community
The project is a prototype, open for community contributions via pull requests. Feedback and suggestions are welcomed.
Licensing & Compatibility
Limitations & Caveats
This project is explicitly labeled a prototype and is not secured for production environments. The backend code lacks robust security practices. While functional for basic demonstrations, performance and advanced reasoning depend heavily on the chosen LLM.
10 months ago
1 week