mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-17 17:01:31 +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'
|
//'openai/gpt-5-mini'
|
||||||
$result = $aiPlatform->invoke('openrouter/auto', $input, [
|
$result = $aiPlatform->invoke('openrouter/auto', $input, [
|
||||||
'response_format' => 'json_schema',
|
'response_format' => [
|
||||||
'json_schema' => $this->jsonSchemaConverter->getJSONSchema(),
|
'type' => 'json_schema',
|
||||||
|
'json_schema' => $this->jsonSchemaConverter->getJSONSchema(),
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
throw new \RuntimeException('LLM invocation failed: '.$e->getMessage(), previous: $e);
|
throw new \RuntimeException('LLM invocation failed: '.$e->getMessage(), previous: $e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue