Skip to content

Commit 7c969ce

Browse files
committed
minor #312 [style] php cs fix (junaidbinfarooq)
This PR was merged into the main branch. Discussion ---------- [style] php cs fix | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | None | License | MIT Commits ------- 60c0620 style: php cs fix
2 parents 83582b6 + 60c0620 commit 7c969ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/src/Bridge/Cerebras/ResultConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function convert(RawHttpResult|RawResultInterface $result, array $options
4444

4545
if (!isset($data['choices'][0]['message']['content'])) {
4646
if (isset($data['type'], $data['message']) && str_ends_with($data['type'], 'error')) {
47-
throw new RuntimeException(\sprintf('Cerebras API error: %s', $data['message']));
47+
throw new RuntimeException(\sprintf('Cerebras API error: "%s"', $data['message']));
4848
}
4949

5050
throw new RuntimeException('Response does not contain output.');

0 commit comments

Comments
 (0)