Admin > AI Analiza detalj

Osnovno
ID: 41
Status: confirmed
Izvor: public_upload
Kreirano: 2026-05-13 11:15:20
Azurirano: 2026-05-13 11:17:31
Analizirano: 2026-05-13 11:15:50
Potvrdeno: 2026-05-13 11:17: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: 3 / 3
Greska:
Povezani upiti: 1 Ima upit
Rucno uneseno vozilo (JSON):
{
    "make": "Ford",
    "model": "Fusion",
    "year": null,
    "generation": "1st generation",
    "body_type": "hatchback",
    "note": null,
    "source": "ai_candidate_unmapped"
}
Izvor rucnog unosa vozila: ai_candidate_unmapped
1) Slike po rolama
Prednja strana
50641552_Image_8.jpg (image/jpeg, 4080x3060)
Zadnja strana
50641552_Image_18.jpg (image/jpeg, 4080x3060)
Lijeva strana
50641552_Image_2.jpg (image/jpeg, 4080x3060)
Desna strana
50641552_Image_1.jpg (image/jpeg, 4080x3060)
Dodatna
Nema slike za ovu rolu.
Detalj ostecenja
50641552_Image_11.jpg (image/jpeg, 4080x3060)
50641552_Image_12.jpg (image/jpeg, 4080x3060)
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": 23350,
    "http_status": 200,
    "response": {
        "id": "resp_08879cb2c84c697e006a04412fae20819bb04ad6223f4050c2",
        "object": "response",
        "created_at": 1778663727,
        "status": "completed",
        "background": false,
        "billing": {
            "payer": "developer"
        },
        "completed_at": 1778663749,
        "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_08879cb2c84c697e006a04413bd894819bb8a06a52bad00bde",
                "type": "message",
                "status": "completed",
                "content": [
                    {
                        "type": "output_text",
                        "annotations": [],
                        "logprobs": [],
                        "text": "{\"vehicle\":{\"top_candidate\":{\"make\":\"Ford\",\"model\":\"Fusion\",\"generation\":\"1st generation\",\"year_from\":2002,\"year_to\":2012,\"body_type\":\"hatchback\",\"confidence\":0.9},\"candidates\":[{\"make\":\"Ford\",\"model\":\"Fusion\",\"generation\":\"1st generation\",\"year_from\":2002,\"year_to\":2012,\"body_type\":\"hatchback\",\"confidence\":0.9}],\"needs_user_confirmation\":true},\"detected_parts\":[{\"raw_part_name\":\"left front headlight\",\"normalized_part_name\":\"headlight\",\"category_key\":\"lighting\",\"side\":\"left\",\"position\":\"front\",\"image_role\":\"front\",\"damage_type\":\"broken\",\"damage_severity\":\"severe\",\"confidence\":0.95},{\"raw_part_name\":\"front bumper\",\"normalized_part_name\":\"bumper\",\"category_key\":\"bumper\",\"side\":\"center\",\"position\":\"front\",\"image_role\":\"front\",\"damage_type\":\"cracked\",\"damage_severity\":\"severe\",\"confidence\":0.9},{\"raw_part_name\":\"left front fender\",\"normalized_part_name\":\"fender\",\"category_key\":\"body\",\"side\":\"left\",\"position\":\"front\",\"image_role\":\"front\",\"damage_type\":\"dented\",\"damage_severity\":\"severe\",\"confidence\":0.9}],\"image_quality\":{\"front\":\"good\",\"rear\":\"good\",\"left\":\"good\",\"right\":\"good\"},\"warnings\":[\"Moguće je da su unutarnji dijelovi ispod lima također oštećeni, ali nisu vidljivi na fotografijama.\"],\"questions_for_user\":[\"Možete li potvrditi točan model i godinu vozila?\",\"Da li postoje dodatne fotografije unutrašnjosti motornog prostora ili drugih oštećenih dijelova?\"],\"overall_confidence\":0.88,\"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": 14772,
            "input_tokens_details": {
                "cached_tokens": 0
            },
            "output_tokens": 371,
            "output_tokens_details": {
                "reasoning_tokens": 0
            },
            "total_tokens": 15143
        },
        "user": null,
        "metadata": []
    },
    "ai_response": {
        "vehicle": {
            "top_candidate": {
                "make": "Ford",
                "model": "Fusion",
                "generation": "1st generation",
                "year_from": 2002,
                "year_to": 2012,
                "body_type": "hatchback",
                "confidence": 0.90000000000000002220446049250313080847263336181640625
            },
            "candidates": [
                {
                    "make": "Ford",
                    "model": "Fusion",
                    "generation": "1st generation",
                    "year_from": 2002,
                    "year_to": 2012,
                    "body_type": "hatchback",
                    "confidence": 0.90000000000000002220446049250313080847263336181640625
                }
            ],
            "needs_user_confirmation": true
        },
        "detected_parts": [
            {
                "raw_part_name": "left front headlight",
                "normalized_part_name": "headlight",
                "category_key": "lighting",
                "side": "left",
                "position": "front",
                "image_role": "front",
                "damage_type": "broken",
                "damage_severity": "severe",
                "confidence": 0.9499999999999999555910790149937383830547332763671875
            },
            {
                "raw_part_name": "front bumper",
                "normalized_part_name": "bumper",
                "category_key": "bumper",
                "side": "center",
                "position": "front",
                "image_role": "front",
                "damage_type": "cracked",
                "damage_severity": "severe",
                "confidence": 0.90000000000000002220446049250313080847263336181640625
            },
            {
                "raw_part_name": "left front fender",
                "normalized_part_name": "fender",
                "category_key": "body",
                "side": "left",
                "position": "front",
                "image_role": "front",
                "damage_type": "dented",
                "damage_severity": "severe",
                "confidence": 0.90000000000000002220446049250313080847263336181640625
            }
        ],
        "image_quality": {
            "front": "good",
            "rear": "good",
            "left": "good",
            "right": "good"
        },
        "warnings": [
            "Moguće je da su unutarnji dijelovi ispod lima također oštećeni, ali nisu vidljivi na fotografijama."
        ],
        "questions_for_user": [
            "Možete li potvrditi točan model i godinu vozila?",
            "Da li postoje dodatne fotografije unutrašnjosti motornog prostora ili drugih oštećenih dijelova?"
        ],
        "overall_confidence": 0.88000000000000000444089209850062616169452667236328125,
        "needs_user_confirmation": true
    },
    "parse_error": null
}
Osjetljivi headeri i kljucevi su maskirani.
3) A/B/C/D status
A) AI raw response:
Ford Fusion 1st generation (2002-2012)
B) AI saved candidates:
Kandidati vozila: 1, Kandidati dijelova: 3
Odabrano vozilo: Ford Fusion 1st generation (2002-2012)
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_id41
public_token3ed0bc548fe5e67fcfd51bd272e2fdf2
statusconfirmed
image_count6
OPENAI_API_KEY_CONFIGUREDtrue
OPENAI_VISION_MODELgpt-4.1-mini
OPENAI_VISION_FALLBACK_MODELgpt-4.1
last_ai_raw_log_id119
last_ai_statusvision_response
last_model_usedgpt-4.1-mini
Debug counters
raw_vehicle_candidates_count2
saved_vehicle_candidates_count1
raw_part_candidates_count3
saved_part_candidates_count3
mapped_vehicle_candidates_count0
mapped_part_candidates_count0
selected_vehicle_candidate_id57
selected_part_candidate_ids[212,213,214]
4) Saved vehicle candidates (1)
Rank Naziv Godiste Sigurnost Mapirano Status Akcija
1 Ford Fusion 1st generation 2002 - 2012 0.9000 (Visoka sigurnost) make: 17
model: null
gen: null
Nije mapirano na internu bazu vozila.
top odabrano (korisnik/admin) nije mapirano Dodaj vehicle alias
5) Saved part candidates (3)
Rank Dio Strana/Pozicija Image Kategorija Sigurnost Status Akcija
1 left front headlight
left front far
left / front front id: null
key: lighting
Nije mapirano na internu kategoriju.
0.9500 (Visoka sigurnost) odabrano needs confirm Dodaj part alias
2 front bumper
front branik
center / front front id: null
key: bumper
Nije mapirano na internu kategoriju.
0.9000 (Visoka sigurnost) odabrano needs confirm Dodaj part alias
3 left front fender
left front blatobran
left / front front id: null
key: body
Nije mapirano na internu kategoriju.
0.9000 (Visoka sigurnost) odabrano needs confirm Dodaj part alias
6) Odluke sigurnosti
Top sigurnost vozila: 0.90 (Visoka sigurnost)
Vozilo treba potvrdu: da
Sazetak dijelova: high 3, medium 0, low 0, ignore 0
Warnings:
  • Potrebna je rucna potvrda vozila zbog nesigurnog rezultata.
  • Vrlo niska sigurnost prepoznavanja vozila.
7) Korisnikove/Admin potvrde
Potvrdeno vozilo: FORD (make_id: 17, model_id: null, generation_id: null, year: null)
Potvrdeni dijelovi:
  • left front headlight [cat: null, side: left, position: front]
  • front bumper [cat: null, side: center, position: front]
  • left front fender [cat: null, side: left, position: front]
Mogući B2B artikli za provjeru
left front blatobran
Product code Naziv Kategorija Cijena Zaliha Vozilo iz kataloga Match score Match reason
2576311 FD FUSION BLATOBRANI/HAUBE/VEZNI LIMOVI 188.47 0 FUSION (JU_) 100 proizvodac odgovara, model odgovara, godiste je u rasponu, required kljucne rijeci su pronadene, pronadene su dodatne kljucne rijeci.
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)
#34 part_unmapped_selected user 2026-05-13 11:17:31
Staro
{
    "selected_part_candidate_ids": [
        212,
        213,
        214
    ]
}
Novo
{
    "unmapped_part_candidate_ids": [
        212,
        213,
        214
    ]
}
9) Search filter JSON
{
    "vehicle_source": "ai_candidate_unmapped",
    "make_id": 17,
    "model_id": null,
    "generation_id": null,
    "year_from": 2002,
    "year_to": 2012,
    "confirmed_vehicle_label": "FORD",
    "manual_make": "Ford",
    "manual_model": "Fusion",
    "manual_year": null,
    "manual_generation": "1st generation",
    "manual_body_type": "hatchback",
    "manual_note": null,
    "parts": [
        {
            "category_id": null,
            "category_key": "lighting",
            "side": "left",
            "position": "front",
            "raw_part_name": "left front headlight",
            "manual_note": null
        },
        {
            "category_id": null,
            "category_key": "bumper",
            "side": "center",
            "position": "front",
            "raw_part_name": "front bumper",
            "manual_note": null
        },
        {
            "category_id": null,
            "category_key": "body",
            "side": "left",
            "position": "front",
            "raw_part_name": "left front 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 (3)
#120 inquiry_created 2026-05-13 11:17:41
Zahtjev JSON
{
    "event": "inquiry_created",
    "analysis_id": 41,
    "inquiry_id": 14,
    "has_phone": true,
    "has_email": false,
    "preferred_contact": "phone",
    "selected_products_input_count": 0,
    "selected_products_snapshot_count": 0,
    "selected_products_saved_count": 0,
    "selected_b2b_items_input_count": 1,
    "selected_b2b_items_saved_count": 1
}
Odgovor JSON
{
    "ok": true,
    "inquiry_id": 14,
    "selected_products_snapshot_count": 0,
    "selected_products_saved_count": 0,
    "selected_b2b_items_saved_count": 1
}
#119 vision_response 2026-05-13 11:15:50
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": 23350,
    "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"
                    },
                    {
                        "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": 23350,
    "http_status": 200,
    "response": {
        "id": "resp_08879cb2c84c697e006a04412fae20819bb04ad6223f4050c2",
        "object": "response",
        "created_at": 1778663727,
        "status": "completed",
        "background": false,
        "billing": {
            "payer": "developer"
        },
        "completed_at": 1778663749,
        "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_08879cb2c84c697e006a04413bd894819bb8a06a52bad00bde",
                "type": "message",
                "status": "completed",
                "content": [
                    {
                        "type": "output_text",
                        "annotations": [],
                        "logprobs": [],
                        "text": "{\"vehicle\":{\"top_candidate\":{\"make\":\"Ford\",\"model\":\"Fusion\",\"generation\":\"1st generation\",\"year_from\":2002,\"year_to\":2012,\"body_type\":\"hatchback\",\"confidence\":0.9},\"candidates\":[{\"make\":\"Ford\",\"model\":\"Fusion\",\"generation\":\"1st generation\",\"year_from\":2002,\"year_to\":2012,\"body_type\":\"hatchback\",\"confidence\":0.9}],\"needs_user_confirmation\":true},\"detected_parts\":[{\"raw_part_name\":\"left front headlight\",\"normalized_part_name\":\"headlight\",\"category_key\":\"lighting\",\"side\":\"left\",\"position\":\"front\",\"image_role\":\"front\",\"damage_type\":\"broken\",\"damage_severity\":\"severe\",\"confidence\":0.95},{\"raw_part_name\":\"front bumper\",\"normalized_part_name\":\"bumper\",\"category_key\":\"bumper\",\"side\":\"center\",\"position\":\"front\",\"image_role\":\"front\",\"damage_type\":\"cracked\",\"damage_severity\":\"severe\",\"confidence\":0.9},{\"raw_part_name\":\"left front fender\",\"normalized_part_name\":\"fender\",\"category_key\":\"body\",\"side\":\"left\",\"position\":\"front\",\"image_role\":\"front\",\"damage_type\":\"dented\",\"damage_severity\":\"severe\",\"confidence\":0.9}],\"image_quality\":{\"front\":\"good\",\"rear\":\"good\",\"left\":\"good\",\"right\":\"good\"},\"warnings\":[\"Moguće je da su unutarnji dijelovi ispod lima također oštećeni, ali nisu vidljivi na fotografijama.\"],\"questions_for_user\":[\"Možete li potvrditi točan model i godinu vozila?\",\"Da li postoje dodatne fotografije unutrašnjosti motornog prostora ili drugih oštećenih dijelova?\"],\"overall_confidence\":0.88,\"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": 14772,
            "input_tokens_details": {
                "cached_tokens": 0
            },
            "output_tokens": 371,
            "output_tokens_details": {
                "reasoning_tokens": 0
            },
            "total_tokens": 15143
        },
        "user": null,
        "metadata": []
    },
    "ai_response": {
        "vehicle": {
            "top_candidate": {
                "make": "Ford",
                "model": "Fusion",
                "generation": "1st generation",
                "year_from": 2002,
                "year_to": 2012,
                "body_type": "hatchback",
                "confidence": 0.90000000000000002220446049250313080847263336181640625
            },
            "candidates": [
                {
                    "make": "Ford",
                    "model": "Fusion",
                    "generation": "1st generation",
                    "year_from": 2002,
                    "year_to": 2012,
                    "body_type": "hatchback",
                    "confidence": 0.90000000000000002220446049250313080847263336181640625
                }
            ],
            "needs_user_confirmation": true
        },
        "detected_parts": [
            {
                "raw_part_name": "left front headlight",
                "normalized_part_name": "headlight",
                "category_key": "lighting",
                "side": "left",
                "position": "front",
                "image_role": "front",
                "damage_type": "broken",
                "damage_severity": "severe",
                "confidence": 0.9499999999999999555910790149937383830547332763671875
            },
            {
                "raw_part_name": "front bumper",
                "normalized_part_name": "bumper",
                "category_key": "bumper",
                "side": "center",
                "position": "front",
                "image_role": "front",
                "damage_type": "cracked",
                "damage_severity": "severe",
                "confidence": 0.90000000000000002220446049250313080847263336181640625
            },
            {
                "raw_part_name": "left front fender",
                "normalized_part_name": "fender",
                "category_key": "body",
                "side": "left",
                "position": "front",
                "image_role": "front",
                "damage_type": "dented",
                "damage_severity": "severe",
                "confidence": 0.90000000000000002220446049250313080847263336181640625
            }
        ],
        "image_quality": {
            "front": "good",
            "rear": "good",
            "left": "good",
            "right": "good"
        },
        "warnings": [
            "Moguće je da su unutarnji dijelovi ispod lima također oštećeni, ali nisu vidljivi na fotografijama."
        ],
        "questions_for_user": [
            "Možete li potvrditi točan model i godinu vozila?",
            "Da li postoje dodatne fotografije unutrašnjosti motornog prostora ili drugih oštećenih dijelova?"
        ],
        "overall_confidence": 0.88000000000000000444089209850062616169452667236328125,
        "needs_user_confirmation": true
    },
    "parse_error": null
}
#118 upload_received 2026-05-13 11:15:26
Zahtjev JSON
{
    "session_id": "anon_d1b51d57c1327922404792ea",
    "language_code": "hr",
    "client_ip": "86.33.71.113",
    "uploaded_image_roles": [
        "front",
        "rear",
        "left",
        "right",
        "damage_detail",
        "damage_detail"
    ],
    "missing_image_roles": [],
    "uploaded_count": 6,
    "max_total_images": 10
}
Odgovor JSON