mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 19:11:33 +00:00
chore: update error message formatting (#31980)
This commit is contained in:
parent
56d6d69ce9
commit
a04131489e
@ -649,7 +649,7 @@ class OpenAIAssistantRunnable(RunnableSerializable[dict, OutputType]):
|
|||||||
)
|
)
|
||||||
return actions
|
return actions
|
||||||
run_info = json.dumps(run.dict(), indent=2)
|
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)
|
raise ValueError(msg)
|
||||||
|
|
||||||
def _wait_for_run(self, run_id: str, thread_id: str) -> Any:
|
def _wait_for_run(self, run_id: str, thread_id: str) -> Any:
|
||||||
@ -802,7 +802,7 @@ class OpenAIAssistantRunnable(RunnableSerializable[dict, OutputType]):
|
|||||||
)
|
)
|
||||||
return actions
|
return actions
|
||||||
run_info = json.dumps(run.dict(), indent=2)
|
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)
|
raise ValueError(msg)
|
||||||
|
|
||||||
async def _await_for_run(self, run_id: str, thread_id: str) -> Any:
|
async def _await_for_run(self, run_id: str, thread_id: str) -> Any:
|
||||||
|
Loading…
Reference in New Issue
Block a user