test(live): freeze user-corrected Claude route as a new sample
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Z2-Claude:用户更正型号后的新样本
|
||||
|
||||
用户明确“claude-opus-5.5是我写错了,我改了”。实际公开连接9ae348a5…当前model=claude-opus-5-5、revision2、credentialRevision2、原Messages/SSE/地址/record/空别名及来源;此用户变更作为新基线,保留,不读取或重存凭据。旧Z-Claude1请求176tokens/mismatch、DeepSeek末轮length和Y未交付均已封存,不续跑。
|
||||
|
||||
使用scripts/live-z的claude-corrected单独目录.qa/live-provider-z/claude-corrected。只新冻一次当前正式1.25.2来源和配置→单次无工具/随机nonce严格身份预检→通过才原费用报表新Node。沿用Z/W/Y逐字节原工程目标、三源码/九测试/build/owner状态;16K/2048/1600、Node8请求90000tokens600000ms,审查续接消耗剩余额度。不加型号别名、不改提示、不扩大输出或累计预算。新限额为最多1预检+8工程请求;预检256输出/16000tokens,一次尝试,无自动重发/切池。此样本单独列成本,不与原Z合并筛成功。
|
||||
|
||||
成功门槛、监督审查范围、原状态恢复/证据及本地提交均沿用[LIVE-PROVIDER-Z-PLAN.md](LIVE-PROVIDER-Z-PLAN.md)。凭据修订应保持本次用户新基线2,不能恢复旧1或把用户此次保存归为代理写Key。当前DeepSeek已恢复revision3/凭据1、高性能池revision7等保留。新样本失败即封存,型号一致不认证权重,不证明长期稳定;Node闭环前不运行React/Python/Purge。
|
||||
@@ -8,13 +8,15 @@ import { Agent, fetch } from 'undici';
|
||||
// uses its saved credential internally; this driver never accesses key values.
|
||||
const experiments = {
|
||||
claude: { name: 'apikey-Claude', connectionId: '9ae348a5-d0a6-42ed-8664-0da5f9effe34',
|
||||
model: 'claude-opus-5.5', protocol: 'anthropic-messages', baseUrl: 'https://api.apikey.fan' },
|
||||
model: 'claude-opus-5.5', protocol: 'anthropic-messages', baseUrl: 'https://api.apikey.fan', revision: 1, credentialRevision: 1 },
|
||||
deepseek: { name: 'DeepSeek', connectionId: '1a7a55a9-29f2-4b9f-8ea2-5a55afd7eacd',
|
||||
model: 'deepseek-flash', protocol: 'chat-completions', baseUrl: 'https://api.deepseek.com/v1' },
|
||||
model: 'deepseek-flash', protocol: 'chat-completions', baseUrl: 'https://api.deepseek.com/v1', revision: 1, credentialRevision: 1 },
|
||||
'claude-corrected': { name: 'apikey-Claude(用户更正后)', connectionId: '9ae348a5-d0a6-42ed-8664-0da5f9effe34',
|
||||
model: 'claude-opus-5-5', protocol: 'anthropic-messages', baseUrl: 'https://api.apikey.fan', revision: 2, credentialRevision: 2 },
|
||||
};
|
||||
export const target = process.argv[2];
|
||||
export const experiment = experiments[target];
|
||||
assert.ok(experiment, 'Select exactly claude or deepseek.');
|
||||
assert.ok(experiment, 'Select one pre-registered Z route.');
|
||||
export const root = path.resolve('.qa/live-provider-z', target);
|
||||
export const origin = 'http://127.0.0.1:4318';
|
||||
export const connectionId = experiment.connectionId;
|
||||
|
||||
@@ -12,7 +12,7 @@ const api = async route => (await fetch(origin + '/api' + route, { headers: { 'X
|
||||
const host = await api('/host/status'), center = await api('/model-center'), connection = center.connections.find(c => c.id === connectionId);
|
||||
assert.equal(boot.version, '1.25.2'); assert.equal(host.identity.pid, 36552); assert.equal(host.activity.active, false);
|
||||
assert.equal(host.desktopWindows.count, 0);
|
||||
assert.equal(connection.revision, 1); assert.equal(connection.enabled, true); assert.equal(connection.hasKey, true); assert.equal(connection.credentialRevision, 1);
|
||||
assert.equal(connection.revision, experiment.revision); assert.equal(connection.enabled, true); assert.equal(connection.hasKey, true); assert.equal(connection.credentialRevision, experiment.credentialRevision);
|
||||
assert.equal(connection.model, experiment.model); assert.equal(connection.protocol, experiment.protocol); assert.equal(connection.streaming, true);
|
||||
assert.equal(connection.contextLimit, 16000); assert.equal(connection.maxOutputTokens, 2048);
|
||||
assert.equal(connection.modelIdentityPolicy ?? 'record', 'record');
|
||||
|
||||
@@ -17,7 +17,7 @@ try {
|
||||
const before = await publicSnapshot(origin, dataRoot()); save('preflight/before.json', before);
|
||||
assert.deepEqual(before.active, []);
|
||||
const connection = before.modelCenter.connections.find(value => value.id === connectionId);
|
||||
assert.equal(connection.enabled, true); assert.equal(connection.hasKey, true); assert.equal(connection.credentialRevision, 1);
|
||||
assert.equal(connection.enabled, true); assert.equal(connection.hasKey, true); assert.equal(connection.credentialRevision, experiment.credentialRevision);
|
||||
assert.equal(connection.protocol, experiment.protocol); assert.equal(connection.model, experiment.model);
|
||||
assert.equal(connection.revision, original.connectionRevision);
|
||||
assert.equal(connection.contextLimit, 16000); assert.equal(connection.modelIdentityPolicy ?? 'record', 'record');
|
||||
|
||||
Reference in New Issue
Block a user