When a search has no local match, a "Mit KI suchen" button now calls a PHP backend (api/lookup.php) that asks the Claude API for plausible cargo-bay dimensions. The API key stays server-side (config.php, gitignored, see config.example.php) and is never exposed to the browser. The existing category-based estimate picker remains as a free fallback if the AI call fails or isn't configured.
5 lines
197 B
PHP
5 lines
197 B
PHP
<?php
|
|
// Diese Datei zu config.php kopieren und den echten API-Key eintragen.
|
|
// config.php ist per .gitignore ausgeschlossen und wird nie ins Repo übernommen.
|
|
|
|
$ANTHROPIC_API_KEY = 'sk-ant-...';
|