mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-10 15:12:12 +00:00
Fixed structured output response format
This commit is contained in:
parent
2631ff4bee
commit
c9d2044949
1 changed files with 4 additions and 2 deletions
|
|
@ -176,8 +176,10 @@ final class AIInfoExtractor implements InfoProviderInterface
|
|||
|
||||
//'openai/gpt-5-mini'
|
||||
$result = $aiPlatform->invoke('openrouter/auto', $input, [
|
||||
'response_format' => 'json_schema',
|
||||
'json_schema' => $this->jsonSchemaConverter->getJSONSchema(),
|
||||
'response_format' => [
|
||||
'type' => 'json_schema',
|
||||
'json_schema' => $this->jsonSchemaConverter->getJSONSchema(),
|
||||
]
|
||||
]);
|
||||
} catch (\Throwable $e) {
|
||||
throw new \RuntimeException('LLM invocation failed: '.$e->getMessage(), previous: $e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue