Using LibreChat with NanoGPT
A quick guide to setting up LibreChat with NanoGPT’s API.Setup Instructions
- Get your API key from nano-gpt.com/api
- Locate your LibreChat installation’s
librechat.example.ymlfile - Create a copy named
librechat.yml - Add the following configuration to your
librechat.yml:
reasoning_content field. The addParams block above enables NanoGPT’s compatibility shim so LibreChat can render thoughts without additional changes. If you would rather not send the compatibility flag, you can instead point LibreChat at https://nano-gpt.com/api/v1legacy/ which keeps the legacy response shape by default.
- Set your API key in your environment variables:
Available Models
You can access all our models through this integration, including:- ChatGPT
- Claude 3.7 Sonnet
- Gemini 2.0 Pro
- Perplexity
- And many more!