@solazah/solazah-runtime 0.1.37 → 0.1.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solazah/solazah-runtime",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "main": "index.cjs",
5
5
  "module": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -7,6 +7,8 @@ export interface CopilotMessage {
7
7
  role: "user" | "assistant" | "system";
8
8
  content: string;
9
9
  }
10
+ /** 深度思考「强度」抽象档位(主对话 Effort 选择器)。各 provider 映射成自家参数。 */
11
+ export type EffortLevel = "none" | "low" | "medium" | "high" | "xhigh" | "ultra";
10
12
  export interface CopilotBaseOptions {
11
13
  model?: string;
12
14
  messages?: CopilotMessage[];
@@ -26,7 +28,7 @@ export interface CopilotBaseOptions {
26
28
  * 各 provider 自行映射:OpenAI 兼容 → reasoning_effort(minimal/low/medium/high);
27
29
  * Anthropic 原生 → thinking.budget_tokens + temperature=1;DeepSeek → thinking on/off。
28
30
  */
29
- reasoningEffort?: "off" | "fast" | "balanced" | "smart" | "max" | "ultra";
31
+ reasoningEffort?: EffortLevel;
30
32
  }
31
33
  export interface CopilotCompletionOptions extends CopilotBaseOptions {
32
34
  }