dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Model capability editor for DSH: fetch upstream /models, review and save context window, max output and image support
Fetch a provider's real /models list, review the capability fields it exposes (context window, max output, image input), edit them on one page, then save them back into llm-pi-ai.
Unlike catalog lookups that match a model name against a static table, this plugin asks the configured upstream and shows only what the upstream actually returned. Missing fields stay blank instead of being guessed, and vision support can be proven by a real image probe.
llm-pi-ai accepts contextWindow, maxTokens and input per model, but most OpenAI-compatible gateways return only an id from GET /models. Filling those fields by hand is error-prone, and name-based catalogs are wrong for private routes. This plugin keeps a human in the loop: fetch, inspect, edit, save.
dsh plugin --profile web add github:qingshanjiluo/dsh-model-capsThen restart the profile, or let dsh-hotswap mount it when it is already installed.
http://127.0.0.1:3080/model-caps/ in the same browser session as theWeb UI (the cookie authenticates the page).
llm-pi-ai.providers.GET {baseURL}/models with thatprovider's key from apiKeyEnv -> the credential store.
notes column; blank means the upstream did not expose it.
sent and a model counts as image-capable only when it answers with a colour.
llm-pi-ai.providers..models through settings.mutate, preserving fields it did not touch.
dsh/model-caps.html and is read from disk on every request, so a UI change takes effect on refresh without restarting DSH.\n\n## Settings panel\n\nThe browser half registers a 模型能力 page in the DSH settings panel (settings.section) that embeds the editor at /model-caps/, so the plugin is reachable without knowing a URL. The iframe keeps the panel thin; the editor is still served and versioned by the host half.\n\n## EndpointsMethod · Path · Purpose GET · /model-caps/ · The editor page GET · /model-caps/providers · Configured providers, apiKeyEnv, model counts POST · /model-caps/fetch · { provider } -> upstream rows merged with current config POST · /model-caps/vision · { provider, ids } -> per-model image support POST · /model-caps/save · { provider, rows } -> write the model list back
The reader accepts the common spellings gateways use:
context_length, context_window, max_context_length,max_input_tokens, max_model_len, top_provider.context_length, limits.context
max_tokens, max_output_tokens, max_completion_tokens,top_provider.max_completion_tokens, limits.output
architecture.input_modalities, input_modalities,modalities.input, capabilities.vision, supports_vision, vision
UI; a request without a valid session is rejected.
press a button.
the upstream are shown marked and are dropped unless you keep them.
provider.
MIT