Skip to main content

LiteLLM Integration

Configure LiteLLM to proxy requests through NanoGPT while preserving the legacy reasoning_content field expected by its OpenAI-compatible connector.

Quick configuration

Add NanoGPT to your litellm.yaml (or the equivalent configuration source):
Set your API key before launching LiteLLM:
LiteLLM’s OpenAI adapter expects streaming deltas in delta.reasoning_content, so the v1legacy endpoint is the recommended base URL. If you upgrade your LiteLLM deployment to parse the modern delta.reasoning field, you can switch the base URL to https://nano-gpt.com/api/v1/ instead. You can also swap model to anthropic/claude-opus-4.5 or google/gemini-3-flash-preview if you want a different default.