feat(ai): added pi-native auth-gateway transport
- Added POST /v1/pi/stream endpoint that accepts canonical Context directly, skipping wire-format translation layers. - Added client-side streamPiNative dispatch activated via Model.transport = "pi-native". - Propagated transport field through model registry, provider overrides, and models.yml schema. - Refactored deriveSessionId to accept explicit arguments instead of ParsedFormatRequest.
This commit is contained in:
@@ -121,6 +121,10 @@ export async function startCpuProfile(): Promise<ProfilerSession> {
|
||||
session.connect();
|
||||
|
||||
await session.post("Profiler.enable");
|
||||
// Default CDP interval is 1ms, which mis-attributes await-resumption samples
|
||||
// to the line after `await` (one sparse sample inherits the entire wait). 100µs
|
||||
// scatters samples enough to keep CPU vs. async-wait attribution honest.
|
||||
await session.post("Profiler.setSamplingInterval", { interval: 100 });
|
||||
await session.post("Profiler.start");
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user