You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flag.BoolVar(&gemini, "gemini", false, "Use Google Gemini API")
418
474
flag.BoolVar(&tools, "tools", false, "Enable GitHub Actions Monitor tools for testing")
419
-
flag.StringVar(&model, "model", "", fmt.Sprintf("AI model to use (defaults: %s for OpenAI, %s for Anthropic, %s for OpenRouter, %s for Gemini)", DefaultOpenAIModel, DefaultAnthropicModel, DefaultOpenRouterModel, DefaultGeminiModel))
475
+
flag.StringVar(&model, "model", "", fmt.Sprintf("AI model to use (defaults: %s for OpenAI, %s for Anthropic, %s for OpenRouter, %s for NanoGPT, %s for Gemini)", DefaultOpenAIModel, DefaultAnthropicModel, DefaultOpenRouterModel, DefaultNanoGPTModel, DefaultGeminiModel))
Copy file name to clipboardExpand all lines: docs/docs/waveai-modes.mdx
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Wave AI now supports provider-based configuration which automatically applies se
34
34
35
35
-**`openai`** - OpenAI API (automatically configures endpoint and secret name) [[see example](#openai)]
36
36
-**`openrouter`** - OpenRouter API (automatically configures endpoint and secret name) [[see example](#openrouter)]
37
+
-**`nanogpt`** - NanoGPT API (automatically configures endpoint and secret name) [[see example](#nanogpt)]
37
38
-**`google`** - Google AI (Gemini) [[see example](#google-ai-gemini)]
38
39
-**`azure`** - Azure OpenAI Service (modern API) [[see example](#azure-openai-modern-api)]
39
40
-**`azure-legacy`** - Azure OpenAI Service (legacy deployment API) [[see example](#azure-openai-legacy-deployment-api)]
@@ -230,6 +231,40 @@ For OpenRouter, you must manually specify `ai:capabilities` based on your model'
230
231
```
231
232
:::
232
233
234
+
### NanoGPT
235
+
236
+
[NanoGPT](https://nano-gpt.com) provides access to multiple AI models at competitive prices. Using the `nanogpt` provider simplifies configuration:
237
+
238
+
```json
239
+
{
240
+
"nanogpt-glm47": {
241
+
"display:name": "NanoGPT - GLM 4.7",
242
+
"ai:provider": "nanogpt",
243
+
"ai:model": "zai-org/glm-4.7"
244
+
}
245
+
}
246
+
```
247
+
248
+
The provider automatically sets:
249
+
-`ai:endpoint` to `https://nano-gpt.com/api/v1/chat/completions`
250
+
-`ai:apitype` to `openai-chat`
251
+
-`ai:apitokensecretname` to `NANOGPT_KEY` (store your NanoGPT API key with this name)
252
+
253
+
:::note
254
+
NanoGPT is a proxy service that provides access to multiple AI models. You must manually specify `ai:capabilities` based on the model's features. NanoGPT supports OpenAI-compatible tool calling for models that have that capability. Check the model's `capabilities.vision` field from the [NanoGPT models API](https://nano-gpt.com/api/v1/models?detailed=true) to determine image support. Example for a text-only model with tool support:
255
+
```json
256
+
{
257
+
"nanogpt-glm47": {
258
+
"display:name": "NanoGPT - GLM 4.7",
259
+
"ai:provider": "nanogpt",
260
+
"ai:model": "zai-org/glm-4.7",
261
+
"ai:capabilities": ["tools"]
262
+
}
263
+
}
264
+
```
265
+
For vision-capable models like `openai/gpt-5`, add `"images"` to capabilities.
266
+
:::
267
+
233
268
### Google AI (Gemini)
234
269
235
270
[Google AI](https://ai.google.dev) provides the Gemini family of models. Using the `google` provider simplifies configuration:
0 commit comments