mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 03:08:44 +00:00
Reapply "refactor: move runtime state to SQLite"
This reverts commit 694ca50e97.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import type { ProviderStreamOptions } from "openclaw/plugin-sdk/llm";
|
||||
import {
|
||||
describeImageWithModelPayloadTransform,
|
||||
describeImagesWithModelPayloadTransform,
|
||||
type MediaUnderstandingProvider,
|
||||
} from "openclaw/plugin-sdk/media-understanding";
|
||||
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
||||
import type { ProviderStreamOptions } from "openclaw/plugin-sdk/provider-ai";
|
||||
|
||||
function isRecord(value: unknown): value is Record<string, unknown> {
|
||||
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
||||
}
|
||||
|
||||
export function stripOpencodeDisabledResponsesReasoningPayload(payload: unknown): void {
|
||||
if (!isRecord(payload)) {
|
||||
|
||||
Reference in New Issue
Block a user