@sparkelf/dsh-patch-responses-reasoning-status 0.2.0-rc.3 → 0.2.0-rc.4
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 +20 -20
- package/patches/responses-reasoning-status.patch +15 -15
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "@sparkelf/dsh-patch-responses-reasoning-status",
|
|
3
|
+
"version": "0.2.0-rc.4",
|
|
2
4
|
"description": "Data-only exact official-source patch for OpenAI Responses gateways that reject replayed reasoning status metadata",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/SparkElf/deepseek-harness-plus.git",
|
|
11
|
+
"directory": "patches/npm/responses-reasoning-status"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"files": [
|
|
15
|
+
"patches/*.patch"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT",
|
|
3
18
|
"dshPatch": {
|
|
4
19
|
"formatVersion": 1,
|
|
5
20
|
"variants": [
|
|
6
21
|
{
|
|
7
|
-
"dsh": ">=0.1.6-alpha.1",
|
|
8
|
-
"file": "./patches/responses-reasoning-status.patch",
|
|
9
22
|
"id": "responses-omit-reasoning-input-status",
|
|
23
|
+
"dsh": ">=0.1.6-alpha.1",
|
|
10
24
|
"target": {
|
|
11
|
-
"baseRevision": "0a15e36e7f82b6ed45af6fa9759f29b40dcd965d",
|
|
12
25
|
"kind": "dsh-source",
|
|
26
|
+
"baseRevision": "0a15e36e7f82b6ed45af6fa9759f29b40dcd965d",
|
|
13
27
|
"paths": [
|
|
14
28
|
"packages/llm/llm-pi-ai/",
|
|
15
29
|
"packages/client/ui-settings-models/"
|
|
16
30
|
]
|
|
17
|
-
}
|
|
31
|
+
},
|
|
32
|
+
"file": "./patches/responses-reasoning-status.patch"
|
|
18
33
|
}
|
|
19
34
|
]
|
|
20
|
-
}
|
|
21
|
-
"files": [
|
|
22
|
-
"patches/*.patch"
|
|
23
|
-
],
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"name": "@sparkelf/dsh-patch-responses-reasoning-status",
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"access": "public"
|
|
28
|
-
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"directory": "patches/npm/responses-reasoning-status",
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/SparkElf/deepseek-harness-plus.git"
|
|
33
|
-
},
|
|
34
|
-
"type": "module",
|
|
35
|
-
"version": "0.2.0-rc.3"
|
|
35
|
+
}
|
|
36
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/packages/client/ui-settings-models/src/client/ModelsSection.module.css b/packages/client/ui-settings-models/src/client/ModelsSection.module.css
|
|
2
|
-
index
|
|
2
|
+
index 2dc7237..f0a9ab9 100644
|
|
3
3
|
--- a/packages/client/ui-settings-models/src/client/ModelsSection.module.css
|
|
4
4
|
+++ b/packages/client/ui-settings-models/src/client/ModelsSection.module.css
|
|
5
5
|
@@ -397,6 +397,31 @@
|
|
@@ -35,12 +35,12 @@ index 2dc72373ea..f0a9ab95fb 100644
|
|
|
35
35
|
written once above the rows, so a row is one line of fields plus its
|
|
36
36
|
delete control; each field still carries the indexed `aria-label` that
|
|
37
37
|
diff --git a/packages/client/ui-settings-models/src/client/ProviderEditor.tsx b/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
|
|
38
|
-
index
|
|
38
|
+
index 3fb057a..ad5ae52 100644
|
|
39
39
|
--- a/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
|
|
40
40
|
+++ b/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
|
|
41
|
-
@@ -
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
@@ -44,6 +44,9 @@ type EditorLayout = 'deepseek' | 'pi-ai' | 'unknown'
|
|
42
|
+
|
|
43
|
+
|
|
44
44
|
|
|
45
45
|
+/** Leaf path of the curated OpenAI Responses compatibility setting. */
|
|
46
46
|
+const OMIT_REASONING_INPUT_STATUS_PATH = ['responsesCompatibility', 'omitReasoningInputStatus'] as const
|
|
@@ -48,7 +48,7 @@ index ffa8c2e1fe..3c3e7729b4 100644
|
|
|
48
48
|
/** Props of {@link ProviderEditor}. */
|
|
49
49
|
export interface ProviderEditorProps {
|
|
50
50
|
/** Provider route id. */
|
|
51
|
-
@@ -
|
|
51
|
+
@@ -171,6 +174,10 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
|
|
52
52
|
const root = useMemo(() => schema.rehydrate(namespace.schema), [namespace.schema, schema])
|
|
53
53
|
const node = useMemo(() => schema.nodeAtPath(root, settingsPath), [root, schema, settingsPath])
|
|
54
54
|
const fallback = schema.getPath(namespace.value, settingsPath)
|
|
@@ -59,7 +59,7 @@ index ffa8c2e1fe..3c3e7729b4 100644
|
|
|
59
59
|
const disabled = props.readOnly || busy
|
|
60
60
|
const layout = layoutOf(namespace.ns)
|
|
61
61
|
const keyRef = refFor(schema, namespace, settingsPath, props.provider)
|
|
62
|
-
@@ -
|
|
62
|
+
@@ -199,6 +206,11 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
|
|
63
63
|
const value = schema.getPath(source, [key])
|
|
64
64
|
return typeof value === 'string' && value.trim().length > 0 ? value : undefined
|
|
65
65
|
}
|
|
@@ -71,7 +71,7 @@ index ffa8c2e1fe..3c3e7729b4 100644
|
|
|
71
71
|
const setField = (key: string, next: string | undefined): void => {
|
|
72
72
|
// A value of nothing but whitespace is cleared, not stored: `stringAt`
|
|
73
73
|
// already reports it as absent, so the field would otherwise render empty
|
|
74
|
-
@@ -
|
|
74
|
+
@@ -227,6 +239,9 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
|
|
75
75
|
// What the form currently shows, which is what an interrogation must ask:
|
|
76
76
|
// an edited-but-unsaved endpoint, and a key typed but not yet stored.
|
|
77
77
|
const probeApi = stringAt(draft, 'api') ?? stringAt(fallback, 'api')
|
|
@@ -81,7 +81,7 @@ index ffa8c2e1fe..3c3e7729b4 100644
|
|
|
81
81
|
const probeBaseURL = stringAt(draft, 'baseURL') ?? stringAt(fallback, 'baseURL')
|
|
82
82
|
const probe = {
|
|
83
83
|
settingsNs: namespace.ns,
|
|
84
|
-
@@ -
|
|
84
|
+
@@ -435,7 +450,15 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
|
|
85
85
|
value={probeApi ?? ''}
|
|
86
86
|
aria-label={t('customApi')}
|
|
87
87
|
disabled={disabled}
|
|
@@ -98,7 +98,7 @@ index ffa8c2e1fe..3c3e7729b4 100644
|
|
|
98
98
|
>
|
|
99
99
|
{/* A profile naming no protocol — hand-written into
|
|
100
100
|
settings.yaml with no model to need one — selects
|
|
101
|
-
@@ -
|
|
101
|
+
@@ -449,6 +472,24 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
|
|
102
102
|
</div>
|
|
103
103
|
)
|
|
104
104
|
: null}
|
|
@@ -124,10 +124,10 @@ index ffa8c2e1fe..3c3e7729b4 100644
|
|
|
124
124
|
the extras differ — DeepSeek's inherited capacities, pi-ai's
|
|
125
125
|
endpoint interrogation. */}
|
|
126
126
|
diff --git a/packages/client/ui-settings-models/src/client/locales.ts b/packages/client/ui-settings-models/src/client/locales.ts
|
|
127
|
-
index
|
|
127
|
+
index 0c9b29a..c9956ca 100644
|
|
128
128
|
--- a/packages/client/ui-settings-models/src/client/locales.ts
|
|
129
129
|
+++ b/packages/client/ui-settings-models/src/client/locales.ts
|
|
130
|
-
@@ -
|
|
130
|
+
@@ -88,6 +88,7 @@ export const en = {
|
|
131
131
|
customDisplayName: 'Display name',
|
|
132
132
|
customApi: 'API protocol',
|
|
133
133
|
customApiUnset: 'Not selected',
|
|
@@ -135,7 +135,7 @@ index 3a3190416f..49aac02f68 100644
|
|
|
135
135
|
customNeedsBaseUrl: 'A custom provider needs a base URL.',
|
|
136
136
|
customBaseUrlInvalid: 'Enter a valid HTTP or HTTPS URL.',
|
|
137
137
|
customNeedsModels: 'A custom provider needs at least one model.',
|
|
138
|
-
@@ -
|
|
138
|
+
@@ -198,6 +199,7 @@ export const zh: { [Key in keyof typeof en]: string } = {
|
|
139
139
|
customDisplayName: '显示名称',
|
|
140
140
|
customApi: 'API 协议',
|
|
141
141
|
customApiUnset: '未选择',
|
|
@@ -144,7 +144,7 @@ index 3a3190416f..49aac02f68 100644
|
|
|
144
144
|
customBaseUrlInvalid: '请输入有效的 HTTP 或 HTTPS 地址。',
|
|
145
145
|
customNeedsModels: '自定义提供方至少需要一个模型。',
|
|
146
146
|
diff --git a/packages/llm/llm-pi-ai/src/adapter.ts b/packages/llm/llm-pi-ai/src/adapter.ts
|
|
147
|
-
index
|
|
147
|
+
index 8dba978..5bd8033 100644
|
|
148
148
|
--- a/packages/llm/llm-pi-ai/src/adapter.ts
|
|
149
149
|
+++ b/packages/llm/llm-pi-ai/src/adapter.ts
|
|
150
150
|
@@ -111,6 +111,24 @@ export interface PiAiAuthInjection {
|
|
@@ -181,7 +181,7 @@ index 8dba978c31..5bd80331c5 100644
|
|
|
181
181
|
maxRetries: 0,
|
|
182
182
|
}
|
|
183
183
|
diff --git a/packages/llm/llm-pi-ai/src/config.ts b/packages/llm/llm-pi-ai/src/config.ts
|
|
184
|
-
index
|
|
184
|
+
index 2f9e563..7eda300 100644
|
|
185
185
|
--- a/packages/llm/llm-pi-ai/src/config.ts
|
|
186
186
|
+++ b/packages/llm/llm-pi-ai/src/config.ts
|
|
187
187
|
@@ -87,6 +87,12 @@ export type {
|