Add nano-gpt.com as a provider
This commit is contained in:
21 files changed
+535
-2
No files matched your search
@@ -36,6 +36,7 @@ See [Venice AI](/providers/venice).
|
||||
- [OpenAI (API + Codex)](/providers/openai)
|
||||
- [Anthropic (API + Claude Code CLI)](/providers/anthropic)
|
||||
- [Qwen (OAuth)](/providers/qwen)
|
||||
- [NanoGPT](/providers/nanogpt)
|
||||
- [OpenRouter](/providers/openrouter)
|
||||
- [Vercel AI Gateway](/providers/vercel-ai-gateway)
|
||||
- [Moonshot AI (Kimi + Kimi Code)](/providers/moonshot)
|
||||
|
||||
@@ -33,6 +33,7 @@ See [Venice AI](/providers/venice).
|
||||
|
||||
- [OpenAI (API + Codex)](/providers/openai)
|
||||
- [Anthropic (API + Claude Code CLI)](/providers/anthropic)
|
||||
- [NanoGPT](/providers/nanogpt)
|
||||
- [OpenRouter](/providers/openrouter)
|
||||
- [Vercel AI Gateway](/providers/vercel-ai-gateway)
|
||||
- [Moonshot AI (Kimi + Kimi Code)](/providers/moonshot)
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
---
|
||||
summary: "Use NanoGPT's OpenAI-compatible API in Clawdbot"
|
||||
read_when:
|
||||
- You want to use NanoGPT as a model provider
|
||||
- You need a NanoGPT API key or base URL setup
|
||||
---
|
||||
# NanoGPT
|
||||
|
||||
NanoGPT exposes OpenAI-compatible endpoints. Clawdbot registers it as the
|
||||
`nanogpt` provider.
|
||||
|
||||
## Quick setup
|
||||
|
||||
1) Set `NANOGPT_API_KEY` (or run the wizard below).
|
||||
2) Run onboarding:
|
||||
|
||||
```bash
|
||||
clawdbot onboard --auth-choice nanogpt-api-key
|
||||
```
|
||||
|
||||
The default model is set to:
|
||||
|
||||
```
|
||||
nanogpt/zai-org/glm-4.7
|
||||
```
|
||||
|
||||
## Config example
|
||||
|
||||
```json5
|
||||
{
|
||||
env: { NANOGPT_API_KEY: "sk-..." },
|
||||
agents: {
|
||||
defaults: {
|
||||
model: { primary: "nanogpt/zai-org/glm-4.7" },
|
||||
models: { "nanogpt/zai-org/glm-4.7": { alias: "GLM 4.7" } }
|
||||
}
|
||||
},
|
||||
models: {
|
||||
mode: "merge",
|
||||
providers: {
|
||||
nanogpt: {
|
||||
baseUrl: "https://nano-gpt.com/api/v1",
|
||||
apiKey: "${NANOGPT_API_KEY}",
|
||||
api: "openai-completions",
|
||||
models: [
|
||||
{
|
||||
id: "zai-org/glm-4.7",
|
||||
name: "GLM 4.7",
|
||||
reasoning: true,
|
||||
input: ["text"],
|
||||
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
||||
contextWindow: 200000,
|
||||
maxTokens: 65535
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
- Model refs use `nanogpt/<modelId>`.
|
||||
- If you enable a model allowlist (`agents.defaults.models`), add every model you plan to use.
|
||||
- For the full provider catalog and configuration rules, see [Model providers](/concepts/model-providers).
|
||||
Reference in new issue
Block a user