mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
fix openai format
This commit is contained in:
parent
6520ebc6dc
commit
188d480539
@ -153,6 +153,9 @@ Each line represents a detection state, not necessarily unique individuals. Pare
|
|||||||
if "other_concerns" in schema.get("required", []):
|
if "other_concerns" in schema.get("required", []):
|
||||||
schema["required"].remove("other_concerns")
|
schema["required"].remove("other_concerns")
|
||||||
|
|
||||||
|
# OpenAI strict mode requires additionalProperties: false on all objects
|
||||||
|
schema["additionalProperties"] = False
|
||||||
|
|
||||||
response_format = {
|
response_format = {
|
||||||
"type": "json_schema",
|
"type": "json_schema",
|
||||||
"json_schema": {
|
"json_schema": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user