fix: align DeepSeek canary tool rounds with gate
Memind CI / Test, build, and release guards (pull_request) Successful in 1m32s
Memind CI / Test, build, and release guards (pull_request) Successful in 1m32s
This commit is contained in:
@@ -6,6 +6,7 @@ import { Agent, fetch as undiciFetch } from 'undici';
|
||||
export const DEFAULT_DEEPSEEK_NO_THINK_PORT = 18036;
|
||||
export const DEFAULT_DEEPSEEK_UPSTREAM = 'https://api.deepseek.com';
|
||||
export const DEFAULT_MOONSHOT_UPSTREAM = 'https://api.moonshot.cn';
|
||||
export const DEEPSEEK_COMPAT_CONTRACT_VERSION = 1;
|
||||
|
||||
const insecureDispatcher = new Agent({
|
||||
connect: { rejectUnauthorized: false },
|
||||
@@ -256,6 +257,8 @@ export function createDeepseekNoThinkProxy({
|
||||
res.writeHead(200, { 'Content-Type': 'application/json' });
|
||||
res.end(JSON.stringify({
|
||||
ok: true,
|
||||
contractVersion: DEEPSEEK_COMPAT_CONTRACT_VERSION,
|
||||
deepseekThinking: 'disabled',
|
||||
upstream: normalizedUpstream,
|
||||
moonshotUpstream: normalizedMoonshotUpstream,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user