{"id":26623928,"url":"https://github.com/dev-sufyaan/dual-llm","last_synced_at":"2025-06-14T22:08:59.497Z","repository":{"id":282322037,"uuid":"948119247","full_name":"dev-sufyaan/Dual-LLM","owner":"dev-sufyaan","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-14T10:22:48.000Z","size":8985,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T22:08:59.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dual-llm.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-sufyaan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-13T19:29:14.000Z","updated_at":"2025-03-14T10:22:51.000Z","dependencies_parsed_at":"2025-03-14T00:39:55.929Z","dependency_job_id":"67150f16-cb95-4611-b2dd-c08dfac59a2d","html_url":"https://github.com/dev-sufyaan/Dual-LLM","commit_stats":null,"previous_names":["dev-sufyaan/dual-llm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-sufyaan/Dual-LLM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sufyaan%2FDual-LLM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sufyaan%2FDual-LLM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sufyaan%2FDual-LLM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sufyaan%2FDual-LLM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-sufyaan","download_url":"https://codeload.github.com/dev-sufyaan/Dual-LLM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sufyaan%2FDual-LLM/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259890446,"owners_count":22927373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-24T10:19:38.761Z","updated_at":"2025-06-14T22:08:59.171Z","avatar_url":"https://github.com/dev-sufyaan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dual LLM Chat Interface\n\nA web application that provides a dual-window chat interface for interacting with two separate LLM models via OpenRouter API. This interface allows users to enter a prompt, get a response from the first LLM, send that response to a second LLM for refinement, and continue the cycle as needed.\n\n## Features\n\n- Two separate chat windows, each connected to a different LLM model\n- Shared prompt input at the bottom\n- Ability to send responses from one LLM to the other for refinement\n- Responsive design that works on both desktop and mobile devices\n- Modern UI with Tailwind CSS\n- Python backend with FastAPI for communicating with OpenRouter API\n- Integration with Qwen/QwQ-32B and DeepSeek R1 Distill Qwen-32B models\n\n## Project Structure\n\n```\ndual-llm-chat/\n├── backend/\n│   ├── main.py\n│   ├── requirements.txt\n│   ├── run.sh\n│   └── .env\n├── public/\n│   └── favicon.svg\n├── src/\n│   ├── components/\n│   │   ├── ChatMessage.tsx\n│   │   ├── ChatWindow.tsx\n│   │   └── PromptInput.tsx\n│   ├── services/\n│   │   └── llmService.ts\n│   ├── types/\n│   │   └── index.ts\n│   ├── utils/\n│   │   └── helpers.ts\n│   ├── App.tsx\n│   ├── index.css\n│   └── main.tsx\n├── index.html\n├── package.json\n├── tsconfig.json\n├── tsconfig.node.json\n├── vite.config.ts\n└── README.md\n```\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v14 or later)\n- npm or yarn\n- Python 3.8 or later\n- pip\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/dual-llm-chat.git\n   cd dual-llm-chat\n   ```\n\n2. Install frontend dependencies:\n   ```bash\n   npm install\n   # or\n   yarn\n   ```\n\n3. Install backend dependencies:\n   ```bash\n   cd backend\n   pip install -r requirements.txt\n   cd ..\n   ```\n\n4. Start the backend server:\n   ```bash\n   cd backend\n   ./run.sh\n   # or\n   uvicorn main:app --host 0.0.0.0 --port 8000 --reload\n   ```\n\n5. In a new terminal, start the frontend development server:\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n   ```\n\n6. Open your browser and navigate to `http://localhost:3000`\n\n## OpenRouter API Configuration\n\nThis application uses the OpenRouter API to access various LLM models. The API key is configured in the backend's `.env` file:\n\n```\nOPENROUTER_API_KEY=your_api_key_here\n```\n\nThe following models are used:\n- **LLM1**: Qwen/QwQ-32B:free\n- **LLM2**: DeepSeek/DeepSeek-R1-Distill-Qwen-32B:free\n\n## Customization\n\n- **Models**: You can add or change models by modifying the `MODELS` object in `backend/main.py` and the `defaultModels` array in `src/services/llmService.ts`\n- **Styling**: The application uses Tailwind CSS for styling. You can customize the appearance by modifying the classes in the components or by updating the Tailwind configuration in `tailwind.config.js`\n\n## License\n\nMIT ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-sufyaan%2Fdual-llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-sufyaan%2Fdual-llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-sufyaan%2Fdual-llm/lists"}