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 8ad3114 commit f95c87eCopy full SHA for f95c87e
src/platform/src/Bridge/OpenAi/Gpt/ResultConverter.php
@@ -92,7 +92,7 @@ private function convertStream(RawResultInterface|RawHttpResult $result): \Gener
92
$toolCalls = [];
93
$metadata = [];
94
foreach ($result->getDataStream() as $data) {
95
- if (!$metadata) {
+ if (!$metadata && isset($data['id'])) {
96
$metadata['id'] = $data['id'];
97
}
98
0 commit comments