Skip to content

Commit 6f67c91

Browse files
committed
fix
1 parent a7c4b62 commit 6f67c91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/platform/src/Bridge/Ollama/OllamaClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private function doCompletionRequest(array|string $payload, array $options = [])
6363
// Revert Ollama's default streaming behavior
6464
$options['stream'] ??= false;
6565

66-
if (array_key_exists('response_format', $options) && array_key_exists('json_schema', $options['response_format'])) {
66+
if (\array_key_exists('response_format', $options) && \array_key_exists('json_schema', $options['response_format'])) {
6767
$options['format'] = $options['response_format']['json_schema']['schema'];
6868
unset($options['response_format']);
6969
}

src/platform/tests/Bridge/Ollama/OllamaClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testOutputStructureIsSupported()
7474
'additionalProperties' => false,
7575
],
7676
],
77-
]
77+
],
7878
]);
7979

8080
$this->assertSame(2, $httpClient->getRequestsCount());

0 commit comments

Comments
 (0)