@morlay/dsh-llm-openai-compatible 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/cordis.patch.yml +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,8 +86,9 @@ llm-openai-compatible:
|
|
|
86
86
|
|
|
87
87
|
### 凭据
|
|
88
88
|
|
|
89
|
-
- profile 设置 `apiKeyEnv`
|
|
90
|
-
|
|
89
|
+
- profile 设置 `apiKeyEnv` 后:存在 `ctx.credentials` 服务时经它解析
|
|
90
|
+
(credentials-local 覆盖进程环境 / `.env`);服务缺失时回退
|
|
91
|
+
`launchEnvironmentOf(ctx)`。解析不到 → `LlmError('MISSING_CREDENTIAL')`。
|
|
91
92
|
- profile 不设置 `apiKeyEnv` → 请求不带 `authorization` 头(无认证端点,
|
|
92
93
|
如本地 Ollama)。
|
|
93
94
|
|
|
@@ -105,9 +106,10 @@ llm-openai-compatible:
|
|
|
105
106
|
|
|
106
107
|
## 从 `llm-pi-ai` 迁移
|
|
107
108
|
|
|
108
|
-
把 `llm-pi-ai.providers.<route>` 的 `
|
|
109
|
-
`llm-openai-compatible.providers.<route
|
|
110
|
-
|
|
109
|
+
把 `llm-pi-ai.providers.<route>` 的 `baseURL`/`models`/采样字段平移到
|
|
110
|
+
`llm-openai-compatible.providers.<route>`(无 `api` 字段——协议固定
|
|
111
|
+
chat-completions),`apiKeyEnv` 与 `retryPolicy` 原样保留;
|
|
112
|
+
`reasoningEfforts` 的 `off` 空值语义一致。
|
|
111
113
|
|
|
112
114
|
## 暂缓能力(YAGNI)
|
|
113
115
|
|
|
@@ -119,7 +121,7 @@ llm-openai-compatible:
|
|
|
119
121
|
|
|
120
122
|
```bash
|
|
121
123
|
pnpm install
|
|
122
|
-
pnpm --filter @morlay/dsh-llm-openai-compatible run
|
|
124
|
+
pnpm --filter @morlay/dsh-llm-openai-compatible run build # → dist/*.mjs + *.d.mts
|
|
123
125
|
pnpm exec tsc --noEmit
|
|
124
126
|
pnpm exec vitest run
|
|
125
127
|
```
|
package/cordis.patch.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/dsh-llm-openai-compatible",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "OpenAI-compatible LLM adapter plugin for DeepSeek Harness with configurable default sampling parameters (temperature / topP / topK / penalties / seed) over a providers dict.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|