Skip to content

Commit cc95992

Browse files
committed
fix: bool return
1 parent eb1cdae commit cc95992

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Agents/Adapters/OpenAI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ protected function process(Chunk $chunk, ?callable $listener): string
213213
return '('.$json['error']['code'].') '.$json['error']['message'];
214214
}
215215

216-
return is_array($json['error']) ? json_encode($json['error']) : (string) $json['error'];
216+
return is_array($json['error']) ? json_encode($json['error']) : $json['error'];
217217
}
218218

219219
foreach ($lines as $line) {

0 commit comments

Comments
 (0)