text-generation-webui API integration.
Please ensure that you have text-generation-webui configured and an LLM installed. Recommended installation via the one-click installer appropriate for your OS.
Once text-generation-webui is installed and confirmed working via the web interface, please enable the api option either through the web model configuration tab, or by adding the run-time arg --api to your start command.
Set model_url and run the example
Streaming version
You should install websocket-client to use this feature.pip install websocket-client
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.