Admin > AI Analiza detalj

Osnovno
ID: 44
Status: confirmed
Izvor: public_upload
Kreirano: 2026-05-13 20:07:02
Azurirano: 2026-05-13 20:07:31
Analizirano: 2026-05-13 20:07:17
Potvrdeno: 2026-05-13 20:07:31
Jezik: hr
Primarni model: gpt-4.1-mini
Fallback model: gpt-4.1
Zavrsni model: gpt-4.1-mini
Koristen fallback: ne
Razlog fallbacka: n/a
Vehicle confidence prije/poslije: 0.9000 / 0.9000
Kandidati dijelova prije/poslije: 2 / 2
Greska:
Povezani upiti: 0
Rucno uneseno vozilo (JSON):
{
    "make": "Volkswagen",
    "model": "Golf",
    "year": null,
    "generation": "Mk7",
    "body_type": "hatchback",
    "note": null,
    "source": "ai_candidate_unmapped"
}
Izvor rucnog unosa vozila: ai_candidate_unmapped
1) Slike po rolama
Prednja strana
51989716_Image_5.jpg (image/jpeg, 1280x960)
Zadnja strana
51989716_Image_6.jpg (image/jpeg, 1280x960)
Lijeva strana
51989716_Image_1.jpg (image/jpeg, 1280x960)
Desna strana
51989716_Image_3.jpg (image/jpeg, 1280x960)
Dodatna
Nema slike za ovu rolu.
Detalj ostecenja
51989716_Image_2.jpg (image/jpeg, 1280x960)
2) AI raw JSON
{
    "primary_model": "gpt-4.1-mini",
    "fallback_model": "gpt-4.1",
    "used_model": "gpt-4.1-mini",
    "attempt_label": "primary",
    "is_fallback_attempt": false,
    "fallback_reason": null,
    "duration_ms": 13337,
    "http_status": 200,
    "response": {
        "id": "resp_0b147f9dfec15211006a04bdc957fc8199936a73412357863b",
        "object": "response",
        "created_at": 1778695625,
        "status": "completed",
        "background": false,
        "billing": {
            "payer": "developer"
        },
        "completed_at": 1778695636,
        "error": null,
        "frequency_penalty": 0,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": null,
        "max_tool_calls": null,
        "model": "gpt-4.1-mini-2025-04-14",
        "moderation": null,
        "output": [
            {
                "id": "msg_0b147f9dfec15211006a04bdcefc0c81998e8c94e6a0d327b5",
                "type": "message",
                "status": "completed",
                "content": [
                    {
                        "type": "output_text",
                        "annotations": [],
                        "logprobs": [],
                        "text": "{\"vehicle\":{\"top_candidate\":{\"make\":\"Volkswagen\",\"model\":\"Golf\",\"generation\":\"Mk7\",\"year_from\":2013,\"year_to\":2019,\"body_type\":\"hatchback\",\"confidence\":0.9},\"candidates\":[{\"make\":\"Volkswagen\",\"model\":\"Golf\",\"generation\":\"Mk7\",\"year_from\":2013,\"year_to\":2019,\"body_type\":\"hatchback\",\"confidence\":0.9}],\"needs_user_confirmation\":true},\"detected_parts\":[{\"raw_part_name\":\"front left door\",\"normalized_part_name\":\"front left door\",\"category_key\":\"door\",\"side\":\"left\",\"position\":\"side\",\"image_role\":\"damage_detail\",\"damage_type\":\"dent\",\"damage_severity\":\"severe\",\"confidence\":0.95},{\"raw_part_name\":\"front left fender\",\"normalized_part_name\":\"front left fender\",\"category_key\":\"fender\",\"side\":\"left\",\"position\":\"side\",\"image_role\":\"damage_detail\",\"damage_type\":\"dent\",\"damage_severity\":\"moderate\",\"confidence\":0.8}],\"image_quality\":{\"front\":\"good\",\"rear\":\"good\",\"left\":\"good\",\"right\":\"good\"},\"warnings\":[\"Molimo potvrdite točnost identificiranih dijelova i štete na vozilu.\"],\"questions_for_user\":[\"Je li vozilo zaista Volkswagen Golf Mk7 (2013-2019)?\",\"Je li šteta ograničena na lijeva vrata i okvir vrata?\"],\"overall_confidence\":0.9,\"needs_user_confirmation\":true}"
                    }
                ],
                "role": "assistant"
            }
        ],
        "parallel_tool_calls": true,
        "presence_penalty": 0,
        "previous_response_id": null,
        "prompt_cache_key": null,
        "prompt_cache_retention": "in_memory",
        "reasoning": {
            "effort": null,
            "summary": null
        },
        "safety_identifier": null,
        "service_tier": "default",
        "store": true,
        "temperature": 1,
        "text": {
            "format": {
                "type": "json_schema",
                "description": null,
                "name": "ai_vehicle_analysis",
                "schema": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                        "vehicle",
                        "detected_parts",
                        "image_quality",
                        "warnings",
                        "questions_for_user",
                        "overall_confidence",
                        "needs_user_confirmation"
                    ],
                    "properties": {
                        "vehicle": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "top_candidate",
                                "candidates",
                                "needs_user_confirmation"
                            ],
                            "properties": {
                                "top_candidate": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                        "make",
                                        "model",
                                        "generation",
                                        "year_from",
                                        "year_to",
                                        "body_type",
                                        "confidence"
                                    ],
                                    "properties": {
                                        "make": {
                                            "type": "string"
                                        },
                                        "model": {
                                            "type": "string"
                                        },
                                        "generation": {
                                            "type": "string"
                                        },
                                        "year_from": {
                                            "anyOf": [
                                                {
                                                    "type": "integer"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "year_to": {
                                            "anyOf": [
                                                {
                                                    "type": "integer"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "body_type": {
                                            "type": "string"
                                        },
                                        "confidence": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 1
                                        }
                                    }
                                },
                                "candidates": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                            "make",
                                            "model",
                                            "generation",
                                            "year_from",
                                            "year_to",
                                            "body_type",
                                            "confidence"
                                        ],
                                        "properties": {
                                            "make": {
                                                "type": "string"
                                            },
                                            "model": {
                                                "type": "string"
                                            },
                                            "generation": {
                                                "type": "string"
                                            },
                                            "year_from": {
                                                "anyOf": [
                                                    {
                                                        "type": "integer"
                                                    },
                                                    {
                                                        "type": "null"
                                                    }
                                                ]
                                            },
                                            "year_to": {
                                                "anyOf": [
                                                    {
                                                        "type": "integer"
                                                    },
                                                    {
                                                        "type": "null"
                                                    }
                                                ]
                                            },
                                            "body_type": {
                                                "type": "string"
                                            },
                                            "confidence": {
                                                "type": "number",
                                                "minimum": 0,
                                                "maximum": 1
                                            }
                                        }
                                    }
                                },
                                "needs_user_confirmation": {
                                    "type": "boolean"
                                }
                            }
                        },
                        "detected_parts": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                    "raw_part_name",
                                    "normalized_part_name",
                                    "category_key",
                                    "side",
                                    "position",
                                    "image_role",
                                    "damage_type",
                                    "damage_severity",
                                    "confidence"
                                ],
                                "properties": {
                                    "raw_part_name": {
                                        "type": "string"
                                    },
                                    "normalized_part_name": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "category_key": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "side": {
                                        "type": "string",
                                        "enum": [
                                            "left",
                                            "right",
                                            "center",
                                            "both",
                                            "unknown",
                                            "not_applicable"
                                        ]
                                    },
                                    "position": {
                                        "type": "string",
                                        "enum": [
                                            "front",
                                            "rear",
                                            "side",
                                            "upper",
                                            "lower",
                                            "interior",
                                            "unknown"
                                        ]
                                    },
                                    "image_role": {
                                        "type": "string",
                                        "enum": [
                                            "front",
                                            "rear",
                                            "left",
                                            "right",
                                            "extra",
                                            "damage_detail",
                                            "unknown"
                                        ]
                                    },
                                    "damage_type": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "damage_severity": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "confidence": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 1
                                    }
                                }
                            }
                        },
                        "image_quality": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "front",
                                "rear",
                                "left",
                                "right"
                            ],
                            "properties": {
                                "front": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "rear": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "left": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "right": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                }
                            }
                        },
                        "warnings": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "questions_for_user": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "overall_confidence": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                        },
                        "needs_user_confirmation": {
                            "type": "boolean"
                        }
                    }
                },
                "strict": true
            },
            "verbosity": "medium"
        },
        "tool_choice": "auto",
        "tools": [],
        "top_logprobs": 0,
        "top_p": 1,
        "truncation": "disabled",
        "usage": {
            "input_tokens": 10373,
            "input_tokens_details": {
                "cached_tokens": 0
            },
            "output_tokens": 308,
            "output_tokens_details": {
                "reasoning_tokens": 0
            },
            "total_tokens": 10681
        },
        "user": null,
        "metadata": []
    },
    "ai_response": {
        "vehicle": {
            "top_candidate": {
                "make": "Volkswagen",
                "model": "Golf",
                "generation": "Mk7",
                "year_from": 2013,
                "year_to": 2019,
                "body_type": "hatchback",
                "confidence": 0.90000000000000002220446049250313080847263336181640625
            },
            "candidates": [
                {
                    "make": "Volkswagen",
                    "model": "Golf",
                    "generation": "Mk7",
                    "year_from": 2013,
                    "year_to": 2019,
                    "body_type": "hatchback",
                    "confidence": 0.90000000000000002220446049250313080847263336181640625
                }
            ],
            "needs_user_confirmation": true
        },
        "detected_parts": [
            {
                "raw_part_name": "front left door",
                "normalized_part_name": "front left door",
                "category_key": "door",
                "side": "left",
                "position": "side",
                "image_role": "damage_detail",
                "damage_type": "dent",
                "damage_severity": "severe",
                "confidence": 0.9499999999999999555910790149937383830547332763671875
            },
            {
                "raw_part_name": "front left fender",
                "normalized_part_name": "front left fender",
                "category_key": "fender",
                "side": "left",
                "position": "side",
                "image_role": "damage_detail",
                "damage_type": "dent",
                "damage_severity": "moderate",
                "confidence": 0.8000000000000000444089209850062616169452667236328125
            }
        ],
        "image_quality": {
            "front": "good",
            "rear": "good",
            "left": "good",
            "right": "good"
        },
        "warnings": [
            "Molimo potvrdite točnost identificiranih dijelova i štete na vozilu."
        ],
        "questions_for_user": [
            "Je li vozilo zaista Volkswagen Golf Mk7 (2013-2019)?",
            "Je li šteta ograničena na lijeva vrata i okvir vrata?"
        ],
        "overall_confidence": 0.90000000000000002220446049250313080847263336181640625,
        "needs_user_confirmation": true
    },
    "parse_error": null
}
Osjetljivi headeri i kljucevi su maskirani.
3) A/B/C/D status
A) AI raw response:
Volkswagen Golf Mk7 (2013-2019)
B) AI saved candidates:
Kandidati vozila: 1, Kandidati dijelova: 2
Odabrano vozilo: Volkswagen Golf Mk7 (2013-2019)
C) Mapping status:
Nije mapirano na internu bazu vozila.
D) Final/search filter:
vehicle_source=ai_candidate_unmapped, ready_for_search=true, product_search_ready=false, search_mode=disabled/inquiry_only
Admin action debug
analysis_id44
public_token9ef10924515ac948cab520e16367dc77
statusconfirmed
image_count5
OPENAI_API_KEY_CONFIGUREDtrue
OPENAI_VISION_MODELgpt-4.1-mini
OPENAI_VISION_FALLBACK_MODELgpt-4.1
last_ai_raw_log_id127
last_ai_statusvision_response
last_model_usedgpt-4.1-mini
Debug counters
raw_vehicle_candidates_count2
saved_vehicle_candidates_count1
raw_part_candidates_count2
saved_part_candidates_count2
mapped_vehicle_candidates_count0
mapped_part_candidates_count0
selected_vehicle_candidate_id61
selected_part_candidate_ids[224,225]
4) Saved vehicle candidates (1)
Rank Naziv Godiste Sigurnost Mapirano Status Akcija
1 Volkswagen Golf Mk7 2013 - 2019 0.9000 (Visoka sigurnost) make: null
model: null
gen: null
Nije mapirano na internu bazu vozila.
top odabrano (korisnik/admin) nije mapirano Dodaj vehicle alias
5) Saved part candidates (2)
Rank Dio Strana/Pozicija Image Kategorija Sigurnost Status Akcija
1 front left door
front left vrata
left / side damage_detail id: null
key: door
Nije mapirano na internu kategoriju.
0.9500 (Visoka sigurnost) odabrano needs confirm Dodaj part alias
2 front left fender
front left blatobran
left / side damage_detail id: null
key: fender
Nije mapirano na internu kategoriju.
0.8000 (Srednja sigurnost) odabrano needs confirm Dodaj part alias
6) Odluke sigurnosti
Top sigurnost vozila: 0.90 (Visoka sigurnost)
Vozilo treba potvrdu: da
Sazetak dijelova: high 1, medium 1, low 0, ignore 0
Warnings:
  • Potrebna je rucna potvrda vozila zbog nesigurnog rezultata.
  • Vrlo niska sigurnost prepoznavanja vozila.
7) Korisnikove/Admin potvrde
Potvrdeno vozilo: Volkswagen Golf Mk7 (make_id: null, model_id: null, generation_id: null, year: null)
Potvrdeni dijelovi:
  • front left door [cat: null, side: left, position: side]
  • front left fender [cat: null, side: left, position: side]
Mogući B2B artikli za provjeru
Pronadjeno je vise mogucih kataloskih oznaka vozila.
Admin akcija: Rucno postavi vozilo
Pomoc: popis make/model/generation ID
Makes:
  • 2 - ABARTH
  • 3 - ALFA ROMEO
  • 4 - AUDI
  • 5 - AUSTIN
  • 6 - BMW
  • 7 - CHEVROLET
  • 8 - CHRYSLER
  • 9 - CITROEN
  • 10 - DACIA
  • 11 - DAEWOO
  • 12 - DAIHATSU
  • 13 - DAIMLER
  • 14 - DODGE
  • 15 - DS
  • 16 - FIAT
  • 17 - FORD
  • 18 - FORD USA
  • 19 - GMC
  • 20 - HONDA
  • 21 - HYUNDAI
  • 22 - ISUZU
  • 23 - IVECO
  • 24 - JAGUAR
  • 25 - JEEP
  • 26 - KIA
  • 27 - LADA
  • 28 - LANCIA
  • 29 - LAND ROVER
  • 30 - LEXUS
  • 31 - MAZDA
  • 32 - MERCEDES-BENZ
  • 33 - MG
  • 34 - MINI
  • 35 - MITSUBISHI
  • 36 - NISSAN
  • 37 - NSU
  • 38 - OPEL
  • 39 - PEUGEOT
  • 40 - PININFARINA
  • 41 - PORSCHE
  • 42 - RENAULT
  • 43 - ROVER
  • 44 - SAAB
  • 45 - SEAT
  • 46 - ŠKODA
  • 47 - SMART
  • 48 - SUBARU
  • 49 - SUZUKI
  • 50 - TALBOT
  • 94 - TESLA
  • 51 - TOYOTA
  • 52 - TRIUMPH
  • 53 - VAUXHALL
  • 54 - VOLVO
  • 55 - VW
  • 56 - ZASTAVA
Models:
  • 2 - Astra
  • 3 - Clio
  • 1 - Golf
Generations:
  • 2 - Astra K (2015-2021)
  • 3 - Clio IV (2012-2019)
  • 1 - Golf VII (2012-2019)
Admin akcija: Rucno postavi dio
Pomoc: popis category ID
  • 3 - BLATOBRANI/HAUBE/VEZNI LIMOVI
  • 12 - BRANICI
  • 7 - KARTERI
  • 10 - MASKE
  • 8 - MOSTOVI
  • 9 - ORAN
  • 6 - POSUDE ZA VODU
  • 1 - REPARATURA
  • 14 - REPARATURA AKCIJA
  • 2 - REZERVOARI GORIVA
  • 11 - SVJETLOSNA OPREMA
  • 4 - VILICE (šKARE)
  • 15 - VRATA
  • 5 - ZAšTITNI LIMOVI KOČNICA/ANKER PLOČE
Admin akcija: Oznaci kao rijeseno
8) Korekcije (1)
#38 part_unmapped_selected user 2026-05-13 20:07:31
Staro
{
    "selected_part_candidate_ids": [
        224,
        225
    ]
}
Novo
{
    "unmapped_part_candidate_ids": [
        224,
        225
    ]
}
9) Search filter JSON
{
    "vehicle_source": "ai_candidate_unmapped",
    "make_id": null,
    "model_id": null,
    "generation_id": null,
    "year_from": 2013,
    "year_to": 2019,
    "confirmed_vehicle_label": "Volkswagen Golf Mk7",
    "manual_make": "Volkswagen",
    "manual_model": "Golf",
    "manual_year": null,
    "manual_generation": "Mk7",
    "manual_body_type": "hatchback",
    "manual_note": null,
    "parts": [
        {
            "category_id": null,
            "category_key": "door",
            "side": "left",
            "position": "side",
            "raw_part_name": "front left door",
            "manual_note": null
        },
        {
            "category_id": null,
            "category_key": "fender",
            "side": "left",
            "position": "side",
            "raw_part_name": "front left fender",
            "manual_note": null
        }
    ],
    "needs_manual_category_mapping": true,
    "product_search_ready": false,
    "ready_for_search": true
}
10) Rezultati pretrage / logovi (0)
ID Vrijeme broj_rezultata kliknuti_proizvod_id Filter JSON
Nema search logova.
11) Raw logovi (2)
#127 vision_response 2026-05-13 20:07:17
Zahtjev JSON
{
    "primary_model": "gpt-4.1-mini",
    "fallback_model": "gpt-4.1",
    "used_model": "gpt-4.1-mini",
    "attempt_label": "primary",
    "is_fallback_attempt": false,
    "fallback_reason": null,
    "duration_ms": 13337,
    "http_status": 200,
    "request": {
        "model": "gpt-4.1-mini",
        "input": [
            {
                "role": "user",
                "content": [
                    {
                        "type": "input_text",
                        "text": "You analyze vehicle photos for an inquiry-only auto parts workflow.\nReturn only JSON that matches the provided schema.\nDo not suggest product IDs, OEM numbers, prices, or compatibility claims.\nAlways provide realistic confidence 0..1 values.\nVehicle candidates must describe make/model/generation when visible.\nDetected parts should only include visible parts likely related to the damage.\nIf uncertain, lower confidence and add warnings/questions_for_user.\nBusiness rule: always treat result as needs user confirmation.\nDamage detail photos are included; detected_parts should not be empty when visible damage exists.\nUI language for warnings/questions: hr."
                    },
                    {
                        "type": "input_text",
                        "text": "Image role: front"
                    },
                    {
                        "type": "input_image",
                        "image_url": "[image data redacted, length=47]",
                        "detail": "auto"
                    },
                    {
                        "type": "input_text",
                        "text": "Image role: rear"
                    },
                    {
                        "type": "input_image",
                        "image_url": "[image data redacted, length=47]",
                        "detail": "auto"
                    },
                    {
                        "type": "input_text",
                        "text": "Image role: left"
                    },
                    {
                        "type": "input_image",
                        "image_url": "[image data redacted, length=47]",
                        "detail": "auto"
                    },
                    {
                        "type": "input_text",
                        "text": "Image role: right"
                    },
                    {
                        "type": "input_image",
                        "image_url": "[image data redacted, length=47]",
                        "detail": "auto"
                    },
                    {
                        "type": "input_text",
                        "text": "Image role: damage_detail"
                    },
                    {
                        "type": "input_image",
                        "image_url": "[image data redacted, length=47]",
                        "detail": "auto"
                    }
                ]
            }
        ],
        "text": {
            "format": {
                "type": "json_schema",
                "name": "ai_vehicle_analysis",
                "strict": true,
                "schema": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                        "vehicle",
                        "detected_parts",
                        "image_quality",
                        "warnings",
                        "questions_for_user",
                        "overall_confidence",
                        "needs_user_confirmation"
                    ],
                    "properties": {
                        "vehicle": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "top_candidate",
                                "candidates",
                                "needs_user_confirmation"
                            ],
                            "properties": {
                                "top_candidate": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                        "make",
                                        "model",
                                        "generation",
                                        "year_from",
                                        "year_to",
                                        "body_type",
                                        "confidence"
                                    ],
                                    "properties": {
                                        "make": {
                                            "type": "string"
                                        },
                                        "model": {
                                            "type": "string"
                                        },
                                        "generation": {
                                            "type": "string"
                                        },
                                        "year_from": {
                                            "anyOf": [
                                                {
                                                    "type": "integer"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "year_to": {
                                            "anyOf": [
                                                {
                                                    "type": "integer"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "body_type": {
                                            "type": "string"
                                        },
                                        "confidence": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 1
                                        }
                                    }
                                },
                                "candidates": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                            "make",
                                            "model",
                                            "generation",
                                            "year_from",
                                            "year_to",
                                            "body_type",
                                            "confidence"
                                        ],
                                        "properties": {
                                            "make": {
                                                "type": "string"
                                            },
                                            "model": {
                                                "type": "string"
                                            },
                                            "generation": {
                                                "type": "string"
                                            },
                                            "year_from": {
                                                "anyOf": [
                                                    {
                                                        "type": "integer"
                                                    },
                                                    {
                                                        "type": "null"
                                                    }
                                                ]
                                            },
                                            "year_to": {
                                                "anyOf": [
                                                    {
                                                        "type": "integer"
                                                    },
                                                    {
                                                        "type": "null"
                                                    }
                                                ]
                                            },
                                            "body_type": {
                                                "type": "string"
                                            },
                                            "confidence": {
                                                "type": "number",
                                                "minimum": 0,
                                                "maximum": 1
                                            }
                                        }
                                    }
                                },
                                "needs_user_confirmation": {
                                    "type": "boolean"
                                }
                            }
                        },
                        "detected_parts": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                    "raw_part_name",
                                    "normalized_part_name",
                                    "category_key",
                                    "side",
                                    "position",
                                    "image_role",
                                    "damage_type",
                                    "damage_severity",
                                    "confidence"
                                ],
                                "properties": {
                                    "raw_part_name": {
                                        "type": "string"
                                    },
                                    "normalized_part_name": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "category_key": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "side": {
                                        "type": "string",
                                        "enum": [
                                            "left",
                                            "right",
                                            "center",
                                            "both",
                                            "unknown",
                                            "not_applicable"
                                        ]
                                    },
                                    "position": {
                                        "type": "string",
                                        "enum": [
                                            "front",
                                            "rear",
                                            "side",
                                            "upper",
                                            "lower",
                                            "interior",
                                            "unknown"
                                        ]
                                    },
                                    "image_role": {
                                        "type": "string",
                                        "enum": [
                                            "front",
                                            "rear",
                                            "left",
                                            "right",
                                            "extra",
                                            "damage_detail",
                                            "unknown"
                                        ]
                                    },
                                    "damage_type": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "damage_severity": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "confidence": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 1
                                    }
                                }
                            }
                        },
                        "image_quality": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "front",
                                "rear",
                                "left",
                                "right"
                            ],
                            "properties": {
                                "front": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "rear": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "left": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "right": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                }
                            }
                        },
                        "warnings": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "questions_for_user": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "overall_confidence": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                        },
                        "needs_user_confirmation": {
                            "type": "boolean"
                        }
                    }
                }
            }
        }
    }
}
Odgovor JSON
{
    "primary_model": "gpt-4.1-mini",
    "fallback_model": "gpt-4.1",
    "used_model": "gpt-4.1-mini",
    "attempt_label": "primary",
    "is_fallback_attempt": false,
    "fallback_reason": null,
    "duration_ms": 13337,
    "http_status": 200,
    "response": {
        "id": "resp_0b147f9dfec15211006a04bdc957fc8199936a73412357863b",
        "object": "response",
        "created_at": 1778695625,
        "status": "completed",
        "background": false,
        "billing": {
            "payer": "developer"
        },
        "completed_at": 1778695636,
        "error": null,
        "frequency_penalty": 0,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": null,
        "max_tool_calls": null,
        "model": "gpt-4.1-mini-2025-04-14",
        "moderation": null,
        "output": [
            {
                "id": "msg_0b147f9dfec15211006a04bdcefc0c81998e8c94e6a0d327b5",
                "type": "message",
                "status": "completed",
                "content": [
                    {
                        "type": "output_text",
                        "annotations": [],
                        "logprobs": [],
                        "text": "{\"vehicle\":{\"top_candidate\":{\"make\":\"Volkswagen\",\"model\":\"Golf\",\"generation\":\"Mk7\",\"year_from\":2013,\"year_to\":2019,\"body_type\":\"hatchback\",\"confidence\":0.9},\"candidates\":[{\"make\":\"Volkswagen\",\"model\":\"Golf\",\"generation\":\"Mk7\",\"year_from\":2013,\"year_to\":2019,\"body_type\":\"hatchback\",\"confidence\":0.9}],\"needs_user_confirmation\":true},\"detected_parts\":[{\"raw_part_name\":\"front left door\",\"normalized_part_name\":\"front left door\",\"category_key\":\"door\",\"side\":\"left\",\"position\":\"side\",\"image_role\":\"damage_detail\",\"damage_type\":\"dent\",\"damage_severity\":\"severe\",\"confidence\":0.95},{\"raw_part_name\":\"front left fender\",\"normalized_part_name\":\"front left fender\",\"category_key\":\"fender\",\"side\":\"left\",\"position\":\"side\",\"image_role\":\"damage_detail\",\"damage_type\":\"dent\",\"damage_severity\":\"moderate\",\"confidence\":0.8}],\"image_quality\":{\"front\":\"good\",\"rear\":\"good\",\"left\":\"good\",\"right\":\"good\"},\"warnings\":[\"Molimo potvrdite točnost identificiranih dijelova i štete na vozilu.\"],\"questions_for_user\":[\"Je li vozilo zaista Volkswagen Golf Mk7 (2013-2019)?\",\"Je li šteta ograničena na lijeva vrata i okvir vrata?\"],\"overall_confidence\":0.9,\"needs_user_confirmation\":true}"
                    }
                ],
                "role": "assistant"
            }
        ],
        "parallel_tool_calls": true,
        "presence_penalty": 0,
        "previous_response_id": null,
        "prompt_cache_key": null,
        "prompt_cache_retention": "in_memory",
        "reasoning": {
            "effort": null,
            "summary": null
        },
        "safety_identifier": null,
        "service_tier": "default",
        "store": true,
        "temperature": 1,
        "text": {
            "format": {
                "type": "json_schema",
                "description": null,
                "name": "ai_vehicle_analysis",
                "schema": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                        "vehicle",
                        "detected_parts",
                        "image_quality",
                        "warnings",
                        "questions_for_user",
                        "overall_confidence",
                        "needs_user_confirmation"
                    ],
                    "properties": {
                        "vehicle": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "top_candidate",
                                "candidates",
                                "needs_user_confirmation"
                            ],
                            "properties": {
                                "top_candidate": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                        "make",
                                        "model",
                                        "generation",
                                        "year_from",
                                        "year_to",
                                        "body_type",
                                        "confidence"
                                    ],
                                    "properties": {
                                        "make": {
                                            "type": "string"
                                        },
                                        "model": {
                                            "type": "string"
                                        },
                                        "generation": {
                                            "type": "string"
                                        },
                                        "year_from": {
                                            "anyOf": [
                                                {
                                                    "type": "integer"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "year_to": {
                                            "anyOf": [
                                                {
                                                    "type": "integer"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "body_type": {
                                            "type": "string"
                                        },
                                        "confidence": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 1
                                        }
                                    }
                                },
                                "candidates": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                            "make",
                                            "model",
                                            "generation",
                                            "year_from",
                                            "year_to",
                                            "body_type",
                                            "confidence"
                                        ],
                                        "properties": {
                                            "make": {
                                                "type": "string"
                                            },
                                            "model": {
                                                "type": "string"
                                            },
                                            "generation": {
                                                "type": "string"
                                            },
                                            "year_from": {
                                                "anyOf": [
                                                    {
                                                        "type": "integer"
                                                    },
                                                    {
                                                        "type": "null"
                                                    }
                                                ]
                                            },
                                            "year_to": {
                                                "anyOf": [
                                                    {
                                                        "type": "integer"
                                                    },
                                                    {
                                                        "type": "null"
                                                    }
                                                ]
                                            },
                                            "body_type": {
                                                "type": "string"
                                            },
                                            "confidence": {
                                                "type": "number",
                                                "minimum": 0,
                                                "maximum": 1
                                            }
                                        }
                                    }
                                },
                                "needs_user_confirmation": {
                                    "type": "boolean"
                                }
                            }
                        },
                        "detected_parts": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                    "raw_part_name",
                                    "normalized_part_name",
                                    "category_key",
                                    "side",
                                    "position",
                                    "image_role",
                                    "damage_type",
                                    "damage_severity",
                                    "confidence"
                                ],
                                "properties": {
                                    "raw_part_name": {
                                        "type": "string"
                                    },
                                    "normalized_part_name": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "category_key": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "side": {
                                        "type": "string",
                                        "enum": [
                                            "left",
                                            "right",
                                            "center",
                                            "both",
                                            "unknown",
                                            "not_applicable"
                                        ]
                                    },
                                    "position": {
                                        "type": "string",
                                        "enum": [
                                            "front",
                                            "rear",
                                            "side",
                                            "upper",
                                            "lower",
                                            "interior",
                                            "unknown"
                                        ]
                                    },
                                    "image_role": {
                                        "type": "string",
                                        "enum": [
                                            "front",
                                            "rear",
                                            "left",
                                            "right",
                                            "extra",
                                            "damage_detail",
                                            "unknown"
                                        ]
                                    },
                                    "damage_type": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "damage_severity": {
                                        "anyOf": [
                                            {
                                                "type": "string"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "confidence": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 1
                                    }
                                }
                            }
                        },
                        "image_quality": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "front",
                                "rear",
                                "left",
                                "right"
                            ],
                            "properties": {
                                "front": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "rear": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "left": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                },
                                "right": {
                                    "type": "string",
                                    "enum": [
                                        "good",
                                        "medium",
                                        "poor",
                                        "unknown"
                                    ]
                                }
                            }
                        },
                        "warnings": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "questions_for_user": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "overall_confidence": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                        },
                        "needs_user_confirmation": {
                            "type": "boolean"
                        }
                    }
                },
                "strict": true
            },
            "verbosity": "medium"
        },
        "tool_choice": "auto",
        "tools": [],
        "top_logprobs": 0,
        "top_p": 1,
        "truncation": "disabled",
        "usage": {
            "input_tokens": 10373,
            "input_tokens_details": {
                "cached_tokens": 0
            },
            "output_tokens": 308,
            "output_tokens_details": {
                "reasoning_tokens": 0
            },
            "total_tokens": 10681
        },
        "user": null,
        "metadata": []
    },
    "ai_response": {
        "vehicle": {
            "top_candidate": {
                "make": "Volkswagen",
                "model": "Golf",
                "generation": "Mk7",
                "year_from": 2013,
                "year_to": 2019,
                "body_type": "hatchback",
                "confidence": 0.90000000000000002220446049250313080847263336181640625
            },
            "candidates": [
                {
                    "make": "Volkswagen",
                    "model": "Golf",
                    "generation": "Mk7",
                    "year_from": 2013,
                    "year_to": 2019,
                    "body_type": "hatchback",
                    "confidence": 0.90000000000000002220446049250313080847263336181640625
                }
            ],
            "needs_user_confirmation": true
        },
        "detected_parts": [
            {
                "raw_part_name": "front left door",
                "normalized_part_name": "front left door",
                "category_key": "door",
                "side": "left",
                "position": "side",
                "image_role": "damage_detail",
                "damage_type": "dent",
                "damage_severity": "severe",
                "confidence": 0.9499999999999999555910790149937383830547332763671875
            },
            {
                "raw_part_name": "front left fender",
                "normalized_part_name": "front left fender",
                "category_key": "fender",
                "side": "left",
                "position": "side",
                "image_role": "damage_detail",
                "damage_type": "dent",
                "damage_severity": "moderate",
                "confidence": 0.8000000000000000444089209850062616169452667236328125
            }
        ],
        "image_quality": {
            "front": "good",
            "rear": "good",
            "left": "good",
            "right": "good"
        },
        "warnings": [
            "Molimo potvrdite točnost identificiranih dijelova i štete na vozilu."
        ],
        "questions_for_user": [
            "Je li vozilo zaista Volkswagen Golf Mk7 (2013-2019)?",
            "Je li šteta ograničena na lijeva vrata i okvir vrata?"
        ],
        "overall_confidence": 0.90000000000000002220446049250313080847263336181640625,
        "needs_user_confirmation": true
    },
    "parse_error": null
}
#126 upload_received 2026-05-13 20:07:03
Zahtjev JSON
{
    "session_id": "anon_d1b51d57c1327922404792ea",
    "language_code": "hr",
    "client_ip": "86.33.71.113",
    "uploaded_image_roles": [
        "front",
        "rear",
        "left",
        "right",
        "damage_detail"
    ],
    "missing_image_roles": [],
    "uploaded_count": 5,
    "max_total_images": 10
}
Odgovor JSON