mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
fix(backend/copilot): encode content to bytes in cmd_load upload_transcript call
upload_transcript now requires bytes for the content param but cmd_load was passing a str read from the transcript file. Encode to UTF-8 before the call.
This commit is contained in:
@@ -229,7 +229,7 @@ async def cmd_load(session_ids: list[str]) -> None:
|
||||
await upload_transcript(
|
||||
user_id=user_id,
|
||||
session_id=sid,
|
||||
content=content,
|
||||
content=content.encode("utf-8"),
|
||||
message_count=msg_count,
|
||||
)
|
||||
print(f"[{sid[:12]}] Stored transcript in local workspace storage")
|
||||
|
||||
Reference in New Issue
Block a user