mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-13 16:25:05 -05:00
fix(chat/sdk): align read_transcript_file min lines with validate_transcript
Both now accept >=2 lines (a valid 1-turn transcript is user+assistant).
This commit is contained in:
@@ -123,8 +123,8 @@ def read_transcript_file(transcript_path: str) -> str | None:
|
||||
return None
|
||||
|
||||
lines = content.strip().split("\n")
|
||||
if len(lines) < 3:
|
||||
# Metadata-only files have ≤2 lines (queue-operation + file-history-snapshot).
|
||||
if len(lines) < 2:
|
||||
# Metadata-only files have 1 line (single queue-operation or snapshot).
|
||||
logger.debug(
|
||||
f"[Transcript] Too few lines ({len(lines)}): {transcript_path}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user