Skip to main content
In the previous guide, you set up a WebSocket server with a dummy response system. This guide connects it to a real LLM of your choice.
The example repos are currently a bit outdated. This guide is the authoritative reference.

Selecting an LLM

UponAI starts streaming at the first sentence, so your response system’s time to first sentence (time to first token + time to generate a sentence) is factored into overall latency. Low-latency LLM inference is critical for a smooth experience. See Custom LLM Best Practices for tips.

Connect to Your LLM

Replace the dummy class from the previous guide with a real LLM client. The example below uses Azure OpenAI, but you can adapt it for any provider. Community demo repos with more examples:
  • Node.js: Azure OpenAI, OpenAI, OpenRouter
  • Python: OpenAI

Try It in Dashboard

Follow the same steps from the Setup WebSocket Server guide to test your LLM-connected agent in the dashboard.