mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-11 22:02:21 +00:00
test(voice): raise the Realtime size budget to 56,500 for show_street_level
This commit is contained in:
1 parent
34f694c6f2
commit
fed397a764
1 file changed
+4
-4
@@ -714,13 +714,13 @@ test('without an operator Overpass the prompt never offers place search', () =>
|
||||
});
|
||||
|
||||
test('the Realtime prompt stays within its size budget', () => {
|
||||
// Instructions plus tool schemas, in characters, under the same 55,500
|
||||
// Instructions plus tool schemas, in characters, under the same 56,500
|
||||
// ceiling as the deixis prompt lint. Voice geometry adds resolve_area,
|
||||
// find_imagery and the analyst area scopes (osm_query only with an
|
||||
// operator Overpass).
|
||||
// operator Overpass); show_street_level adds its tool and routing rule.
|
||||
const size = (overpass) =>
|
||||
realtimeInstructions(undefined, { overpass }).length +
|
||||
JSON.stringify(realtimeTools({ overpass })).length;
|
||||
assert.ok(size(false) <= 55_500, `default prompt ${size(false)} chars`);
|
||||
assert.ok(size(true) <= 55_500, `with Overpass ${size(true)} chars`);
|
||||
assert.ok(size(false) <= 56_500, `default prompt ${size(false)} chars`);
|
||||
assert.ok(size(true) <= 56_500, `with Overpass ${size(true)} chars`);
|
||||
});
|
||||
Reference in new issue
Block a user