Merge PR #8868: add Baidu Qianfan support (thanks @ide-rea)

This commit is contained in:
Peter Steinberger
2026-02-07 00:19:04 -08:00
21 changed files with 379 additions and 7 deletions

View File

@@ -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