@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 CHANGED
@@ -86,8 +86,9 @@ llm-openai-compatible:
86
86
 
87
87
  ### 凭据
88
88
 
89
- - profile 设置 `apiKeyEnv` 后:`ctx.credentials` 优先,其次
90
- `launchEnvironmentOf(ctx)`;解析不到 `LlmError('MISSING_CREDENTIAL')`。
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>` 的 `api`/`baseURL`/`models`/采样字段平移到
109
- `llm-openai-compatible.providers.<route>`,`apiKeyEnv` `retryPolicy` 原样
110
- 保留;`reasoningEfforts` `off` 空值语义一致。
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 prepare # → lib/*.mjs + *.d.mts
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
@@ -20,5 +20,6 @@
20
20
  inputModalities: [text]
21
21
  reasoningEfforts:
22
22
  off:
23
+ low: low
23
24
  high: high
24
25
  max: max
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-llm-openai-compatible",
3
- "version": "0.0.4",
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",