feat: ai 的随机修复

This commit is contained in:
claude-code-best
2026-05-05 19:36:38 +08:00
parent 18d6656a6a
commit 87b96199f9
8 changed files with 217 additions and 2 deletions

View File

@@ -61,6 +61,16 @@ export function initLangfuse(): boolean {
}
}
export async function flushLangfuse(): Promise<void> {
try {
if (processor) {
await processor.forceFlush()
}
} catch (e) {
logForDebugging(`[langfuse] Flush error: ${e}`, { level: 'error' })
}
}
export async function shutdownLangfuse(): Promise<void> {
try {
if (processor) {

View File

@@ -1,6 +1,7 @@
export {
initLangfuse,
shutdownLangfuse,
flushLangfuse,
isLangfuseEnabled,
getLangfuseProcessor,
} from './client.js'