Prerequisites
Install vLLM and start serving a model:install vLLM
start vLLM server
VLLM_API_KEY environment variable. VLLM raises an error without it. If you started the server without --api-key, any value works:
set API key
VLLM connects to http://localhost:8000/v1/ by default. Override with the base_url parameter or the VLLM_BASE_URL environment variable.Example
Advanced Usage
With Tools
vLLM models work with Agno tools:with_tools.py
View more examples here.
Params
VLLM is a subclass of the OpenAILike class and has access to the same params.