mirror of
https://github.com/decolua/9router.git
synced 2026-05-08 12:01:28 +00:00
- Cowork: ComboFormModal
- BaseUrlSelect: add cloud endpoint option, custom URL local state, always default to first option; new cliEndpointMatch helper; CLI tool cards refactor - API: new /v1/audio/voices and /v1/models/info; /v1/models filters disabled models, drop unused timestamp - initializeApp: guard tunnel/tailscale auto-resume to once-per-process - geminiHelper: ensureObjectType for schemas with properties but no type - skills: minor SKILL.md tweaks (chat/embeddings/image/stt/tts/web-*)
This commit is contained in:
@@ -12,10 +12,12 @@ Requires `NINEROUTER_URL` (and `NINEROUTER_KEY` if auth enabled). See https://ra
|
||||
- `POST $NINEROUTER_URL/v1/chat/completions` — OpenAI format
|
||||
- `POST $NINEROUTER_URL/v1/messages` — Anthropic format
|
||||
|
||||
## Discover models
|
||||
## Discover
|
||||
|
||||
```bash
|
||||
curl $NINEROUTER_URL/v1/models | jq '.data[].id'
|
||||
# Per-model metadata (contextWindow, params)
|
||||
curl "$NINEROUTER_URL/v1/models/info?id=openai/gpt-4o"
|
||||
```
|
||||
|
||||
Combos (e.g. `vip`, `mycodex`) auto-fallback through multiple providers.
|
||||
|
||||
@@ -7,10 +7,12 @@ description: Generate vector embeddings via 9Router /v1/embeddings using OpenAI
|
||||
|
||||
Requires `NINEROUTER_URL` (and `NINEROUTER_KEY` if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
|
||||
|
||||
## Discover models
|
||||
## Discover
|
||||
|
||||
```bash
|
||||
curl $NINEROUTER_URL/v1/models/embedding | jq '.data[].id'
|
||||
# Per-model dimensions
|
||||
curl "$NINEROUTER_URL/v1/models/info?id=openai/text-embedding-3-small"
|
||||
```
|
||||
|
||||
## Endpoint
|
||||
|
||||
@@ -7,10 +7,12 @@ description: Generate images via 9Router /v1/images/generations using OpenAI / G
|
||||
|
||||
Requires `NINEROUTER_URL` (and `NINEROUTER_KEY` if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
|
||||
|
||||
## Discover models
|
||||
## Discover
|
||||
|
||||
```bash
|
||||
curl $NINEROUTER_URL/v1/models/image | jq '.data[].id'
|
||||
# Per-model params/options (size enum, quality enum, capabilities like edit)
|
||||
curl "$NINEROUTER_URL/v1/models/info?id=openai/dall-e-3"
|
||||
```
|
||||
|
||||
## Endpoint
|
||||
|
||||
@@ -7,10 +7,12 @@ description: Speech-to-text via 9Router /v1/audio/transcriptions using OpenAI Wh
|
||||
|
||||
Requires `NINEROUTER_URL` (and `NINEROUTER_KEY` if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
|
||||
|
||||
## Discover models
|
||||
## Discover
|
||||
|
||||
```bash
|
||||
curl $NINEROUTER_URL/v1/models/stt | jq '.data[].id'
|
||||
# Per-model params (language, response_format, prompt, temperature support)
|
||||
curl "$NINEROUTER_URL/v1/models/info?id=openai/whisper-1"
|
||||
```
|
||||
|
||||
`model` = STT model ID (e.g. `openai/whisper-1`, `groq/whisper-large-v3`, `deepgram/nova-3`, `gemini/gemini-2.5-flash`).
|
||||
|
||||
@@ -7,13 +7,18 @@ description: Text-to-speech via 9Router /v1/audio/speech using OpenAI / ElevenLa
|
||||
|
||||
Requires `NINEROUTER_URL` (and `NINEROUTER_KEY` if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
|
||||
|
||||
## Discover voices
|
||||
## Discover
|
||||
|
||||
```bash
|
||||
# 1) List models
|
||||
curl $NINEROUTER_URL/v1/models/tts | jq '.data[].id'
|
||||
# 2) Per-model metadata (params, voicesUrl if voice-by-id)
|
||||
curl "$NINEROUTER_URL/v1/models/info?id=el/eleven_multilingual_v2"
|
||||
# 3) List voices (elevenlabs, edge-tts, deepgram, inworld, local-device). Optional ?lang=vi
|
||||
curl "$NINEROUTER_URL/v1/audio/voices?provider=edge-tts&lang=vi" | jq '.data[].model'
|
||||
```
|
||||
|
||||
`model` = voice ID (e.g. `openai/tts-1`, `el/eleven_multilingual_v2`, `edge-tts/en-US-AriaNeural`).
|
||||
`model` field in `/v1/audio/speech` = voice ID directly (e.g. `edge-tts/vi-VN-HoaiMyNeural`, `el/<voice_id>`, or `openai/tts-1` model+default voice).
|
||||
|
||||
## Endpoint
|
||||
|
||||
|
||||
@@ -7,10 +7,12 @@ description: Fetch URL → markdown / text / HTML via 9Router /v1/web/fetch usin
|
||||
|
||||
Requires `NINEROUTER_URL` (and `NINEROUTER_KEY` if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
|
||||
|
||||
## Discover providers
|
||||
## Discover
|
||||
|
||||
```bash
|
||||
curl $NINEROUTER_URL/v1/models/web | jq '.data[] | select(.kind=="webFetch") | .id'
|
||||
# Per-provider params
|
||||
curl "$NINEROUTER_URL/v1/models/info?id=firecrawl/fetch"
|
||||
```
|
||||
|
||||
IDs end in `/fetch` (e.g. `firecrawl/fetch`, `jina/fetch`). `fetch-combo` chains providers with auto-fallback.
|
||||
|
||||
@@ -7,10 +7,12 @@ description: Web search via 9Router /v1/search using Tavily / Exa / Brave / Serp
|
||||
|
||||
Requires `NINEROUTER_URL` (and `NINEROUTER_KEY` if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.
|
||||
|
||||
## Discover providers
|
||||
## Discover
|
||||
|
||||
```bash
|
||||
curl $NINEROUTER_URL/v1/models/web | jq '.data[] | select(.kind=="webSearch") | .id'
|
||||
# Per-provider params (searchTypes, maxResults, required options like cx for google-pse)
|
||||
curl "$NINEROUTER_URL/v1/models/info?id=tavily/search"
|
||||
```
|
||||
|
||||
IDs end in `/search` (e.g. `tavily/search`). Combos (`owned_by:"combo"`) chain providers with auto-fallback.
|
||||
|
||||
Reference in New Issue
Block a user