feat: enforce commercial Jyotish workflow contracts
This commit is contained in:
@@ -7,6 +7,7 @@ type StreamHooks = {
|
||||
type StreamTextResponseOptions = StreamHooks & {
|
||||
readonly mode: "engine" | "mastra";
|
||||
readonly requestId: string;
|
||||
readonly headers?: Record<string, string>;
|
||||
};
|
||||
|
||||
export function streamTextResponse(
|
||||
@@ -62,6 +63,7 @@ export function streamTextResponse(
|
||||
"x-accel-buffering": "no",
|
||||
"x-ayanam-mode": options.mode,
|
||||
"x-ayanam-request-id": options.requestId,
|
||||
...options.headers,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user