Skip to content

Commit 5671476

Browse files
committed
Update printing openai error in exception message
1 parent d96a5ed commit 5671476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenAIAssistant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ private function execute_request($ch)
266266
);
267267
} else if ($http_code != 200) {
268268
throw new \Exception(
269-
"OpenAI API Returned Unexpected HTTP code $http_code"
269+
"OpenAI API Returned Unexpected HTTP code $http_code. " . print_r($response, true)
270270
);
271271
}
272272
curl_close($ch);

0 commit comments

Comments
 (0)