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
473
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))
474
+
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)]
@@ -260,6 +261,40 @@ For OpenRouter, you must manually specify `ai:capabilities` based on your model'
260
261
```
261
262
:::
262
263
264
+
### NanoGPT
265
+
266
+
[NanoGPT](https://nano-gpt.com) provides access to multiple AI models at competitive prices. Using the `nanogpt` provider simplifies configuration:
267
+
268
+
```json
269
+
{
270
+
"nanogpt-glm47": {
271
+
"display:name": "NanoGPT - GLM 4.7",
272
+
"ai:provider": "nanogpt",
273
+
"ai:model": "zai-org/glm-4.7"
274
+
}
275
+
}
276
+
```
277
+
278
+
The provider automatically sets:
279
+
-`ai:endpoint` to `https://nano-gpt.com/api/v1/chat/completions`
280
+
-`ai:apitype` to `openai-chat`
281
+
-`ai:apitokensecretname` to `NANOGPT_KEY` (store your NanoGPT API key with this name)
282
+
283
+
:::note
284
+
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:
285
+
```json
286
+
{
287
+
"nanogpt-glm47": {
288
+
"display:name": "NanoGPT - GLM 4.7",
289
+
"ai:provider": "nanogpt",
290
+
"ai:model": "zai-org/glm-4.7",
291
+
"ai:capabilities": ["tools"]
292
+
}
293
+
}
294
+
```
295
+
For vision-capable models like `openai/gpt-5`, add `"images"` to capabilities.
296
+
:::
297
+
263
298
### Google AI (Gemini)
264
299
265
300
[Google AI](https://ai.google.dev) provides the Gemini family of models. Using the `google` provider simplifies configuration:
0 commit comments