refactor: split provider stream sdk seams

This commit is contained in:
Peter Steinberger
2026-04-05 11:18:10 +01:00
parent 0a21eebf56
commit be526d6423
20 changed files with 232 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
import { buildCopilotDynamicHeaders } from "openclaw/plugin-sdk/provider-stream";
import { buildCopilotDynamicHeaders } from "openclaw/plugin-sdk/provider-stream-shared";
import { describe, expect, it, vi } from "vitest";
import { wrapCopilotAnthropicStream, wrapCopilotProviderStream } from "./stream.js";

View File

@@ -6,7 +6,7 @@ import {
buildCopilotDynamicHeaders,
hasCopilotVisionInput,
streamWithPayloadPatch,
} from "openclaw/plugin-sdk/provider-stream";
} from "openclaw/plugin-sdk/provider-stream-shared";
type StreamContext = Parameters<StreamFn>[1];