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:
@@ -45,8 +45,8 @@ export function resolveDeepseekNoThinkProxyBaseUrl(env = process.env) {
|
||||
const host = String(
|
||||
env.MEMIND_DEEPSEEK_NO_THINK_HOST
|
||||
?? env.MEMIND_GOOSED_HOST_GATEWAY
|
||||
?? 'host.lima.internal',
|
||||
).trim() || 'host.lima.internal';
|
||||
?? 'host.docker.internal',
|
||||
).trim() || 'host.docker.internal';
|
||||
const port = resolveDeepseekNoThinkListenPort(env);
|
||||
return `http://${host}:${port}/v1`;
|
||||
}
|
||||
@@ -57,8 +57,8 @@ export function resolveMoonshotCompatProxyBaseUrl(env = process.env) {
|
||||
const host = String(
|
||||
env.MEMIND_DEEPSEEK_NO_THINK_HOST
|
||||
?? env.MEMIND_GOOSED_HOST_GATEWAY
|
||||
?? 'host.lima.internal',
|
||||
).trim() || 'host.lima.internal';
|
||||
?? 'host.docker.internal',
|
||||
).trim() || 'host.docker.internal';
|
||||
const port = resolveDeepseekNoThinkListenPort(env);
|
||||
return `http://${host}:${port}/moonshot/v1`;
|
||||
}
|
||||
@@ -98,7 +98,7 @@ export function injectDeepseekThinkingDisabled(body) {
|
||||
if (!body || typeof body !== 'object' || Array.isArray(body)) {
|
||||
return { body, injected: false };
|
||||
}
|
||||
if (body.thinking && typeof body.thinking === 'object') {
|
||||
if (body.thinking?.type === 'disabled') {
|
||||
return { body, injected: false };
|
||||
}
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user