mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 06:15:51 +00:00
feat: ai 的随机修复
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export {
|
||||
initLangfuse,
|
||||
shutdownLangfuse,
|
||||
flushLangfuse,
|
||||
isLangfuseEnabled,
|
||||
getLangfuseProcessor,
|
||||
} from './client.js'
|
||||
|
||||
Reference in New Issue
Block a user