feat: add LLM prediction providers with structured output support
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,11 +15,10 @@ class PredictionController extends Controller
|
||||
|
||||
public function index(PredictionRequest $request): JsonResponse
|
||||
{
|
||||
$fuelType = $request->fuelType();
|
||||
$lat = $request->filled('lat') ? (float) $request->input('lat') : null;
|
||||
$lng = $request->filled('lng') ? (float) $request->input('lng') : null;
|
||||
|
||||
$result = $this->predictionService->predict($fuelType, $lat, $lng);
|
||||
$result = $this->predictionService->predict($lat, $lng);
|
||||
|
||||
return response()->json($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user