mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-14 10:41:23 +00:00
21 lines
515 B
TypeScript
21 lines
515 B
TypeScript
import { loadSessionStore, resolveSessionStoreEntry } from "./bot-runtime-api.js";
|
|
|
|
export function resolveFeishuReasoningPreviewEnabled(params: {
|
|
storePath: string;
|
|
sessionKey?: string;
|
|
}): boolean {
|
|
if (!params.sessionKey) {
|
|
return false;
|
|
}
|
|
|
|
try {
|
|
const store = loadSessionStore(params.storePath, { skipCache: true });
|
|
return (
|
|
resolveSessionStoreEntry({ store, sessionKey: params.sessionKey }).existing
|
|
?.reasoningLevel === "stream"
|
|
);
|
|
} catch {
|
|
return false;
|
|
}
|
|
}
|