test/config: cover model-level preset routing

This commit is contained in:
2026-07-28 21:45:59 +08:00
parent 3b72698e14
commit c7ee9b0063
5 changed files with 64 additions and 6 deletions
+2 -1
View File
@@ -20,7 +20,8 @@
- memory: Storage controlling for sessions and messages.
- router: Multi-source capability routing (Phase H; not implemented).
- config: Plyngent configuration center (TOML), including ``[plugins]`` and
``[networking]`` (e.g. fetch SSRF Fake-IP CIDR exemptions).
``[networking]`` (e.g. fetch SSRF Fake-IP CIDR exemptions). Model entries
may override provider ``preset`` / ``url`` for mixed API routing.
- agent: Tool loop, streaming, usage, compact; `@tool` / tags / registry.
- tools: Workspace file/process/VCS/chat/todo/net tools; catalog; plugins;
instance/session context and views.
+4
View File
@@ -87,6 +87,10 @@ access_key_or_token = "sk-replace-me"
#
# [providers.openai.models]
# "gpt-4o-mini" = { text = true }
# # Model-level preset/url overrides let one provider route models via different APIs.
# # `preset = "openai"` means /responses; `openai-compatible` means /chat/completions;
# # `anthropic` means native /messages (support planned).
# # "claude-sonnet" = { text = true, preset = "anthropic", url = "https://api.anthropic.com/v1" }
# --- DeepSeek (OpenAI-compatible convention) ---
# Default models if [providers.*.models] is omitted: deepseek-v4-flash, deepseek-v4-pro.