mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 22:16:13 +00:00
Merge PR #8868: add Baidu Qianfan support (thanks @ide-rea)
This commit is contained in:
@@ -121,7 +121,8 @@ const saveSessionToMemory: HookHandler = async (event) => {
|
||||
messageCount,
|
||||
});
|
||||
|
||||
if (sessionContent && cfg) {
|
||||
// Avoid calling the model provider in unit tests, keep hooks fast and deterministic.
|
||||
if (sessionContent && cfg && !process.env.VITEST && process.env.NODE_ENV !== "test") {
|
||||
log.debug("Calling generateSlugViaLLM...");
|
||||
// Dynamically import the LLM slug generator (avoids module caching issues)
|
||||
// When compiled, handler is at dist/hooks/bundled/session-memory/handler.js
|
||||
|
||||
Reference in New Issue
Block a user