feat: Stream-Error-Info für Debugging bei unexpected_end / max_tokens

- chains Tabelle: neue Spalte stream_error_info (TEXT)
- ChainRecord: neues Property StreamErrorInfo
- AnthropicService/ProcessStream: sammelt Debug-Infos bei problematischen
  stop_reasons (unexpected_end, max_tokens) und API error-Events
- FinalizeChain: speichert stream_error_info in DB
- SSE done-Event: enthält streamErrorInfo für Client-seitiges Debugging
This commit is contained in:
Meleki committed 2026-03-03 09:14:04 +01:00
1 parent dc87bf802a
commit 99914bd343
3 files changed
+60 -9

No files matched your search

+1
View File
@@ -18,5 +18,6 @@ public class ChainRecord
public string ToolChoice { get; set; }
public string ToolNames { get; set; }
public string ArchiveId { get; set; }
public string StreamErrorInfo { get; set; }
public string CreatedAt { get; set; }
}