feat(page-data): add validation suggestions, repair path, and thinking fixes
Memind CI / Test, build, and release guards (push) Failing after 3m18s
Memind CI / Test, build, and release guards (push) Failing after 3m18s
Map Page Data failure codes to Chinese remediation hints, trigger one-shot goosed repair for remediable cases, and recover poisoned thinking sessions. Route local DeepSeek through the no-think proxy via host.docker.internal so tool rounds no longer hit reasoning_content 400; document gate and case-study scenarios for event registration repair. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -22,13 +22,13 @@ test('injectDeepseekThinkingDisabled adds thinking.disabled when absent', () =>
|
||||
assert.equal(body.model, 'deepseek-v4-flash');
|
||||
});
|
||||
|
||||
test('injectDeepseekThinkingDisabled preserves explicit thinking config', () => {
|
||||
test('injectDeepseekThinkingDisabled overrides enabled thinking config', () => {
|
||||
const { body, injected } = injectDeepseekThinkingDisabled({
|
||||
model: 'deepseek-v4-pro',
|
||||
thinking: { type: 'enabled' },
|
||||
});
|
||||
assert.equal(injected, false);
|
||||
assert.deepEqual(body.thinking, { type: 'enabled' });
|
||||
assert.equal(injected, true);
|
||||
assert.deepEqual(body.thinking, { type: 'disabled' });
|
||||
});
|
||||
|
||||
test('deepseekDisableThinkingEnabled defaults on for local runtime profile', () => {
|
||||
@@ -67,7 +67,7 @@ test('moonshotToolSchemaCompatEnabled defaults on for local runtime profiles', (
|
||||
test('resolveDeepseekNoThinkProxyBaseUrl uses host gateway defaults', () => {
|
||||
assert.equal(
|
||||
resolveDeepseekNoThinkProxyBaseUrl({}),
|
||||
'http://host.lima.internal:18036/v1',
|
||||
'http://host.docker.internal:18036/v1',
|
||||
);
|
||||
assert.equal(
|
||||
resolveDeepseekNoThinkProxyBaseUrl({
|
||||
@@ -83,7 +83,7 @@ test('Moonshot compat routing recognizes official endpoints and uses a distinct
|
||||
assert.equal(isMoonshotApiUrl('https://api.deepseek.com/v1'), false);
|
||||
assert.equal(
|
||||
resolveMoonshotCompatProxyBaseUrl({}),
|
||||
'http://host.lima.internal:18036/moonshot/v1',
|
||||
'http://host.docker.internal:18036/moonshot/v1',
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user