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.
12 lines
234 B
JSON
12 lines
234 B
JSON
{
|
|
"require": {
|
|
"anthropic-ai/sdk": "^0.44.0",
|
|
"symfony/http-client": "^7.4",
|
|
"nyholm/psr7": "^1.8"
|
|
},
|
|
"config": {
|
|
"allow-plugins": {
|
|
"php-http/discovery": true
|
|
}
|
|
}
|
|
}
|