@vellumai/assistant 0.11.0-dev.202607301241.272b6e7 → 0.11.0-dev.202607301413.bdcf8bc

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/assistant",
3
- "version": "0.11.0-dev.202607301241.272b6e7",
3
+ "version": "0.11.0-dev.202607301413.bdcf8bc",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -836,8 +836,10 @@ describe("loadConfig startup behavior", () => {
836
836
  );
837
837
  expect(raw.llm.profiles["custom-quality-optimized"].model).toBe("gpt-5.4");
838
838
  expect(raw.llm.profiles["custom-cost-optimized"].provider).toBe("openai");
839
+ // BYOK `cost-optimized` carries `intent: "latency-optimized"`, so it
840
+ // resolves to the same model as the latency class.
839
841
  expect(raw.llm.profiles["custom-cost-optimized"].model).toBe(
840
- "gpt-5.4-nano",
842
+ "gpt-5.6-luna",
841
843
  );
842
844
 
843
845
  // The managed defaults exist only as thin disabled stubs on a BYOK hatch.
@@ -26,7 +26,7 @@ describe("model intents", () => {
26
26
  "claude-opus-4-6",
27
27
  );
28
28
  expect(resolveModelIntent("openai", "latency-optimized")).toBe(
29
- "gpt-5.4-nano",
29
+ "gpt-5.6-luna",
30
30
  );
31
31
  expect(resolveModelIntent("gemini", "latency-optimized")).toBe(
32
32
  "gemini-3.1-flash-lite",
@@ -112,12 +112,18 @@ const VELLUM_PROFILE_IMPLS: Record<ProfileMatrixKey, DefaultProfileTemplate> = {
112
112
  },
113
113
  },
114
114
  "latency-optimized": {
115
- // The managed latency class. `cost-optimized`'s upstream showed
116
- // multi-second cross-session TTFT tails on live voice drives, which the
117
- // front model's leading tokens cannot absorb — they ARE the turn-taking
118
- // verdict. Replace only with a model whose managed credentials are
119
- // provisioned in every environment.
120
- model: "claude-haiku-4-5-20251001",
115
+ // The managed latency class. Its leading tokens are the live-voice
116
+ // turn-taking verdict, so what this profile optimizes is the tail of
117
+ // time-to-first-token rather than the median: a verdict slower than
118
+ // `liveVoice.frontModel.endpointDecisionTimeoutMs` trips the speculative
119
+ // fail-open commit in live-voice-session.ts, which is audible dead air.
120
+ //
121
+ // Two constraints bind the model id. Its managed credentials must be
122
+ // provisioned in every environment, and it alone selects the upstream:
123
+ // `provider` below is the provider-agnostic managed sentinel, so
124
+ // `getManagedUpstream` resolves the real upstream from the model's catalog
125
+ // owner.
126
+ model: "gpt-5.6-luna",
121
127
  provider: "vellum",
122
128
  source: "managed",
123
129
  label: "Latency",
@@ -270,6 +270,36 @@ describe("RetryProvider — callSite resolution", () => {
270
270
  expect(config.max_tokens).toBe(expected.maxTokens as number);
271
271
  });
272
272
 
273
+ test("live-voice front-door call sites reach OpenAI with reasoning off", async () => {
274
+ // The `latency-optimized` pin's whole value is time-to-first-token, and on
275
+ // an OpenAI upstream that depends entirely on disabled thinking being
276
+ // encoded as `effort: "none"`. OpenAI-compatible APIs reason by default
277
+ // when the field is absent, which pushes first-token past the verdict
278
+ // deadline the profile exists to beat.
279
+ //
280
+ // The profile declares `provider: "vellum"` (the provider-agnostic managed
281
+ // sentinel) and the real upstream comes from the model id, so the stub is
282
+ // named for that resolved upstream rather than the sentinel, matching what
283
+ // `createAdapterFromConnection` builds for a managed route.
284
+ setLlmConfig({});
285
+
286
+ const expected = CODE_DEFAULT_PROFILE_ENTRIES["latency-optimized"];
287
+ for (const callSite of ["voiceFrontDoor", "voiceFrontDecision"] as const) {
288
+ let seen: SendMessageOptions | undefined;
289
+ const wrapped = new RetryProvider(
290
+ makeProvider("openai", (options) => {
291
+ seen = options;
292
+ }),
293
+ );
294
+
295
+ await wrapped.sendMessage(DUMMY_MESSAGES, { config: { callSite } });
296
+
297
+ const config = seen?.config as Record<string, unknown>;
298
+ expect(config.model).toBe(expected.model as string);
299
+ expect(config.effort).toBe("none");
300
+ }
301
+ });
302
+
273
303
  test("propagates resolved effort/speed/temperature; omits server-side fields", async () => {
274
304
  setLlmConfig({
275
305
  callSites: {
@@ -18,7 +18,7 @@ const PROVIDER_MODEL_INTENTS: Record<string, Record<ModelIntent, string>> = {
18
18
  },
19
19
  openai: {
20
20
  balanced: "gpt-5.4-mini",
21
- "latency-optimized": "gpt-5.4-nano",
21
+ "latency-optimized": "gpt-5.6-luna",
22
22
  "quality-optimized": "gpt-5.4",
23
23
  "vision-optimized": "gpt-5.4",
24
24
  },