@antseed/cli 0.1.191 → 0.1.192
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/dist/cli/index.js +3 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/proxy/buyer-proxy.d.ts.map +1 -1
- package/dist/proxy/buyer-proxy.js +5 -0
- package/dist/proxy/buyer-proxy.js.map +1 -1
- package/dist/proxy/buyer-proxy.test.js +6 -0
- package/dist/proxy/buyer-proxy.test.js.map +1 -1
- package/dist/proxy/conversation-store.d.ts +4 -0
- package/dist/proxy/conversation-store.d.ts.map +1 -1
- package/dist/proxy/conversation-store.js +10 -0
- package/dist/proxy/conversation-store.js.map +1 -1
- package/dist/proxy/conversation-store.test.js +15 -0
- package/dist/proxy/conversation-store.test.js.map +1 -1
- package/package.json +5 -5
|
@@ -1184,7 +1184,13 @@ test('ranked inference attempts share conversation spend attribution without cou
|
|
|
1184
1184
|
assert.equal(conversation.spentUsdc, '2000');
|
|
1185
1185
|
assert.equal(conversation.requestCount, 1);
|
|
1186
1186
|
assert.equal(conversation.lastModel, `${peers[1].peerId}@model-b`);
|
|
1187
|
+
assert.equal(conversation.lastRouter, `${'a'.repeat(40)}@alpha-route`);
|
|
1187
1188
|
assert.equal(calls.requests.length, 2);
|
|
1189
|
+
// A turn the chat sends straight to a model clears the router, so the desktop shows no routed label.
|
|
1190
|
+
const direct = await invokeProxy(proxy, makeProxyRequest({ headers: { 'x-vpr-session-id': session },
|
|
1191
|
+
body: { model: `${peers[0].peerId}@model-a`, messages: [{ role: 'user', content: 'Again' }] } }));
|
|
1192
|
+
assert.equal(direct.statusCode, 200, direct.body);
|
|
1193
|
+
assert.equal(proxy._conversations.get(`vpr:${session}`).lastRouter, null);
|
|
1188
1194
|
});
|
|
1189
1195
|
function makeRoutingSpendFixture(options = {}) {
|
|
1190
1196
|
const fixture = makeRankedRoutingFixture(options.inferenceStatuses ?? [200]);
|