We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83582b6 commit 60c0620Copy full SHA for 60c0620
src/platform/src/Bridge/Cerebras/ResultConverter.php
@@ -44,7 +44,7 @@ public function convert(RawHttpResult|RawResultInterface $result, array $options
44
45
if (!isset($data['choices'][0]['message']['content'])) {
46
if (isset($data['type'], $data['message']) && str_ends_with($data['type'], 'error')) {
47
- throw new RuntimeException(\sprintf('Cerebras API error: %s', $data['message']));
+ throw new RuntimeException(\sprintf('Cerebras API error: "%s"', $data['message']));
48
}
49
50
throw new RuntimeException('Response does not contain output.');
0 commit comments