Skip to content

Commit 22b8788

Browse files
committed
style(billing): format the safe proxy stream wrapper
1 parent 4ff070d commit 22b8788

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/agent/safe-stream.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
type AssistantMessageEvent,
44
type AssistantMessageEventStream,
55
createAssistantMessageEventStream,
6-
streamSimple,
76
type SimpleStreamOptions,
87
type StreamFunction,
8+
streamSimple,
99
} from "@earendil-works/pi-ai";
1010

1111
const DSML_MARKER = "<|dsml|";
@@ -60,7 +60,10 @@ export function createSafeProxyStream(upstreamFn: StreamFunction<string, SimpleS
6060
return (...args) => streamWithSafety(upstreamFn, ...args);
6161
}
6262

63-
function streamWithSafety(upstreamFn: StreamFunction<string, SimpleStreamOptions>, ...args: Parameters<typeof streamSimple>): ReturnType<typeof streamSimple> {
63+
function streamWithSafety(
64+
upstreamFn: StreamFunction<string, SimpleStreamOptions>,
65+
...args: Parameters<typeof streamSimple>
66+
): ReturnType<typeof streamSimple> {
6467
const [model, context, options] = args;
6568
const output = createAssistantMessageEventStream();
6669
const controller = new AbortController();

0 commit comments

Comments
 (0)