Skip to content

Commit c745db0

Browse files
committed
bug #1042 [Platform][OpenAI] Fix $choice argument type in Gpt\ResultConverter (lyrixx)
This PR was merged into the main branch. Discussion ---------- [Platform][OpenAI] Fix `$choice` argument type in `Gpt\ResultConverter` | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT See #1010 (comment) Commits ------- 4d59873 [Platform] Fix `$choice` argument type in Gpt\ResultConverter
2 parents c58ddce + 4d59873 commit c745db0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/src/Bridge/OpenAi/Gpt/ResultConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ private function isToolCallsStreamFinished(array $data): bool
156156
* message: array{
157157
* role: 'assistant',
158158
* content: ?string,
159-
* tool_calls: array{
159+
* tool_calls: list<array{
160160
* id: string,
161161
* type: 'function',
162162
* function: array{
163163
* name: string,
164164
* arguments: string
165165
* },
166-
* },
166+
* }>,
167167
* refusal: ?mixed
168168
* },
169169
* logprobs: string,

0 commit comments

Comments
 (0)