#4723 Double AI Ping Pong Chat
#4723 Double AI Ping Pong Chat #4723 How can I run 2 AI chat session where the output from one is input to the other, and vice-versa? I would start without maintaining history of the running chat. Just supply one initial prompt, then string the responses back and forth to see the "conversation evolve. To run an automated feedback loop between two LLM sessions without accumulating chat history, you can set up a simple stateless ping-pong script. Each turn sends only the system prompt and the single previous response from the other model as a fresh user message. Here is a minimal, production-ready Python implementation using standard OpenAI-compatible API calls (compatible with OpenAI, local endpoints like Ollama/LM Studio/vLLM, or any compatible proxy). Stateless Dual-Chat Script import time from openai import OpenAI # Initialize client (point to local endpoint or official API) client = OpenAI( base_url= "http://localhost:11434/v1" , # e.g., Ollama or LM Studio...