diff --git a/src/agentscope/models/openai_model.py b/src/agentscope/models/openai_model.py index 27c2e3e1c..0d8455a17 100644 --- a/src/agentscope/models/openai_model.py +++ b/src/agentscope/models/openai_model.py @@ -206,9 +206,6 @@ def __call__( **kwargs, ) - if response.status_code != 200: - raise RuntimeError(response.json()) - # step4: record the api invocation if needed self._save_model_invocation( arguments={ @@ -312,9 +309,6 @@ def __call__( ) raise e - if response.status_code != 200: - raise RuntimeError(response.json()) - # step3: record the model api invocation if needed self._save_model_invocation( arguments={ @@ -399,9 +393,6 @@ def __call__( **kwargs, ) - if response.status_code != 200: - raise RuntimeError(response.json()) - # step3: record the model api invocation if needed self._save_model_invocation( arguments={