chore: update error message formatting (#31980)

This commit is contained in:
Michael Li 2025-07-12 05:19:51 +10:00 committed by GitHub
parent 56d6d69ce9
commit a04131489e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -649,7 +649,7 @@ class OpenAIAssistantRunnable(RunnableSerializable[dict, OutputType]):
)
return actions
run_info = json.dumps(run.dict(), indent=2)
msg = f"Unexpected run status: {run.status}. Full run info:\n\n{run_info})"
msg = f"Unexpected run status: {run.status}. Full run info:\n\n{run_info}"
raise ValueError(msg)
def _wait_for_run(self, run_id: str, thread_id: str) -> Any:
@ -802,7 +802,7 @@ class OpenAIAssistantRunnable(RunnableSerializable[dict, OutputType]):
)
return actions
run_info = json.dumps(run.dict(), indent=2)
msg = f"Unexpected run status: {run.status}. Full run info:\n\n{run_info})"
msg = f"Unexpected run status: {run.status}. Full run info:\n\n{run_info}"
raise ValueError(msg)
async def _await_for_run(self, run_id: str, thread_id: str) -> Any: