mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 07:17:54 +08:00
docs: use the current DeepSeek flash id in the samples
The default catalog and the sample config still named `deepseek-v4-flash`, which DeepSeek keeps only as a compatibility alias. Spell out the mapping Claude-* ids get server-side (`deepseek-v4-pro` / `deepseek-flash`) instead of the `deepseek-v4-*` glob the flash rename made stale.
This commit is contained in:
@@ -203,10 +203,10 @@ Supported provider presets today:
|
||||
|--------|------------------------|--------|
|
||||
| `openai` (default if `preset` omitted) | OpenAI **Responses** (`POST /responses`) | Default models `gpt-5.4` / `gpt-5.4-mini` / `gpt-5.4-nano` when `models` is omitted; optional `provider_tools` (default `web_search`) |
|
||||
| `openai-compatible` | Chat Completions | Generic hosts (vLLM, LiteLLM, proxies); requires `url` |
|
||||
| `deepseek` | Chat Completions (DeepSeek) | Default models `deepseek-v4-flash` / `deepseek-v4-pro` when `models` is omitted; set `convention = "responses"` (provider or per-model) to use the OpenAI **Responses** API (`POST /responses`, currently only `deepseek-v4-flash`), or `convention = "anthropic"` to use the Anthropic **Messages** API on `https://api.deepseek.com/anthropic` |
|
||||
| `deepseek` | Chat Completions (DeepSeek) | Default models `deepseek-flash` / `deepseek-v4-pro` when `models` is omitted; set `convention = "responses"` (provider or per-model) to use the OpenAI **Responses** API (`POST /responses`, currently only `deepseek-flash`), or `convention = "anthropic"` to use the Anthropic **Messages** API on `https://api.deepseek.com/anthropic` |
|
||||
| `anthropic` | Anthropic **Messages** (`POST /messages`) | Native tools/streaming; set `access_key_or_token` (API key) |
|
||||
|
||||
Model-level `preset` / `url` overrides on a catalog entry can route a single provider name to a different API (e.g. gateway + Anthropic model). DeepSeek models may also carry a per-model `convention` (empty = inherit the provider-level one), e.g. serve `deepseek-v4-flash` over Responses while `deepseek-v4-pro` stays Chat Completions:
|
||||
Model-level `preset` / `url` overrides on a catalog entry can route a single provider name to a different API (e.g. gateway + Anthropic model). DeepSeek models may also carry a per-model `convention` (empty = inherit the provider-level one), e.g. serve `deepseek-flash` over Responses while `deepseek-v4-pro` stays Chat Completions:
|
||||
|
||||
```toml
|
||||
[providers.deepseek]
|
||||
@@ -214,7 +214,7 @@ preset = "deepseek"
|
||||
access_key_or_token = "sk-..."
|
||||
|
||||
[providers.deepseek.models]
|
||||
"deepseek-v4-flash" = { text = true, convention = "responses" }
|
||||
"deepseek-flash" = { text = true, convention = "responses" }
|
||||
"deepseek-v4-pro" = { text = true }
|
||||
```
|
||||
|
||||
@@ -222,8 +222,8 @@ DeepSeek's Anthropic convention (`convention = "anthropic"`) points at
|
||||
`https://api.deepseek.com/anthropic` by default and is fully supported by the
|
||||
agent's Anthropic Messages path (tools, streaming, usage). DeepSeek maps
|
||||
`claude-opus*` model ids to `deepseek-v4-pro` and `claude-haiku*` /
|
||||
`claude-sonnet*` (and unknown ids) to `deepseek-v4-flash` server-side; real
|
||||
`deepseek-v4-*` ids pass through as-is. `GET /models` is not documented on that
|
||||
`claude-sonnet*` (and unknown ids) to `deepseek-flash` server-side; real
|
||||
DeepSeek ids pass through as-is. `GET /models` is not documented on that
|
||||
base, so model selection is config-driven.
|
||||
|
||||
If `[database]` is omitted (or SQLite `url` is unset/empty), chat uses a durable file under the user data dir (e.g. `~/.local/share/plyngent/chat.db` on Linux). Set `url = ":memory:"` for a true in-memory SQLite (CLI warns; no file; useful for tests).
|
||||
|
||||
Reference in New Issue
Block a user