cast sandbox preview links to string for consistency

This commit is contained in:
LE Quoc Dat 2025-04-18 04:51:09 +01:00
parent 70882f9292
commit 3f340f740d
1 changed files with 2 additions and 2 deletions

View File

@ -285,8 +285,8 @@ async def start_agent(thread_id: str, user_id: str = Depends(get_current_user_id
'sandbox': {
'id': sandbox_id,
'pass': sandbox_pass,
'vnc_preview': sandbox.get_preview_link(6080),
'sandbox_url': sandbox.get_preview_link(8080)
'vnc_preview': str(sandbox.get_preview_link(6080)),
'sandbox_url': str(sandbox.get_preview_link(8080))
}
}).eq('project_id', project_id).execute()