mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-20 21:51:28 +00:00
style: fix extension lint violations
This commit is contained in:
@@ -12,7 +12,7 @@ vi.mock("./register.runtime.js", () => ({
|
||||
|
||||
import plugin from "./index.js";
|
||||
|
||||
function registerProvider() {
|
||||
function _registerProvider() {
|
||||
return registerProviderWithPluginConfig({});
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
streamWithPayloadPatch,
|
||||
} from "openclaw/plugin-sdk/provider-stream-shared";
|
||||
|
||||
type StreamContext = Parameters<StreamFn>[1];
|
||||
type _StreamContext = Parameters<StreamFn>[1];
|
||||
|
||||
export function wrapCopilotAnthropicStream(baseStreamFn: StreamFn | undefined): StreamFn {
|
||||
const underlying = baseStreamFn ?? streamSimple;
|
||||
@@ -25,10 +25,10 @@ export function wrapCopilotAnthropicStream(baseStreamFn: StreamFn | undefined):
|
||||
...options,
|
||||
headers: {
|
||||
...buildCopilotDynamicHeaders({
|
||||
messages: context.messages as StreamContext["messages"],
|
||||
hasImages: hasCopilotVisionInput(context.messages as StreamContext["messages"]),
|
||||
messages: context.messages,
|
||||
hasImages: hasCopilotVisionInput(context.messages),
|
||||
}),
|
||||
...(options?.headers ?? {}),
|
||||
...options?.headers,
|
||||
},
|
||||
},
|
||||
applyAnthropicEphemeralCacheControlMarkers,
|
||||
|
||||
Reference in New Issue
Block a user