dsh-llm-config
开发工具 活跃维护

dsh-llm-config

lovstudio/dsh-llm-config

提供可复用的LLM配置配置文件能力,可作为插件向浏览器端服务暴露,支持统一管理大模型调用参数,简化浏览器端接入大模型服务的配置流程,开箱即用无需重复编写配置逻辑。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
34 KB
仓库大小
24 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:lovstudio/dsh-llm-config
git clone https://github.com/lovstudio/dsh-llm-config.git
git clone git@github.com:lovstudio/dsh-llm-config.git
README.md main

@lovstudio/dsh-llm-config

English | 中文

Host-side reusable LLM profile library. It owns the llm-config settings namespace and exposes llmConfig.runCompletion through a generated Typert Remote contribution. Each profile selects a provider, model, and system prompt; consumers address profiles by stable id without depending on the Host LLM service directly.

The package is intentionally Host-only. Browser editors belong in downstream Client packages such as @lovstudio/dsh-llm-config-ui; @deepseek-ai/dsh-api-remotes imports the generated Remote contribution and bundles its runtime codec dependencies for the browser.

Model Experience

Profile completion request

What the model sees

The model sees the selected profile's exact systemPrompt followed by the caller's content as one user message. The shipped market-search profile asks for a concise dshfind keyword query and no explanation.

Token effect

The profile prompt is a fixed per-request cost; user content and the generated answer vary by call. The auxiliary answer is capped at 512 output tokens.

KV Cache effect

Prefix-stable while the selected profile's provider, model, and prompt remain unchanged. Changing a profile may invalidate reuse from the changed system-prompt segment; user content appends after that prefix.

Known Limitations and Deferred Work

  • Profiles are selected by exact id; there is no fallback profile.
  • A missing profile, provider, or model fails the Remote call instead of silently choosing another route.
  • Profile editing is provided by a separate browser package.