Frequently Asked Questions
How do you send a request to an LLM API?
You send an HTTP POST with a JSON body containing the model name and messages, plus an authorization header. Python libraries such as requests or httpx make it simple to build and send.
What is a streaming response?
Instead of waiting for the full answer, the server sends the reply in chunks as tokens are generated. Your script must read these chunks incrementally and assemble them into the final text.
Why use asyncio for LLM testing?
Asynchronous requests let you send many prompts at once without waiting for each reply, which speeds up large test runs. The beginner room on Codelivly is free and teaches this step by step.