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 2631ff4 commit c9d2044Copy full SHA for c9d2044
1 file changed
src/Services/InfoProviderSystem/Providers/AIInfoExtractor.php
@@ -176,8 +176,10 @@ private function callLLM(string $htmlContent, string $url): array
176
177
//'openai/gpt-5-mini'
178
$result = $aiPlatform->invoke('openrouter/auto', $input, [
179
- 'response_format' => 'json_schema',
180
- 'json_schema' => $this->jsonSchemaConverter->getJSONSchema(),
+ 'response_format' => [
+ 'type' => 'json_schema',
181
+ 'json_schema' => $this->jsonSchemaConverter->getJSONSchema(),
182
+ ]
183
]);
184
} catch (\Throwable $e) {
185
throw new \RuntimeException('LLM invocation failed: '.$e->getMessage(), previous: $e);
0 commit comments