api/lookup.php now branches on \$AI_PROVIDER in config.php ('anthropic' or
'openai'). Claude uses the existing Anthropic SDK path; OpenAI is called
via a plain cURL request (Chat Completions, JSON response_format) to avoid
a second SDK dependency. Only the selected provider's key needs to be set.
12 lines
475 B
PHP
12 lines
475 B
PHP
<?php
|
|
// Diese Datei zu config.php kopieren und die echten API-Keys eintragen.
|
|
// config.php ist per .gitignore ausgeschlossen und wird nie ins Repo übernommen.
|
|
|
|
// Welcher Anbieter für die KI-Fahrzeugschätzung genutzt wird: 'anthropic' oder 'openai'.
|
|
// Nur der Key des gewählten Anbieters muss ausgefüllt sein.
|
|
$AI_PROVIDER = 'anthropic';
|
|
|
|
$ANTHROPIC_API_KEY = 'sk-ant-...';
|
|
|
|
$OPENAI_API_KEY = 'sk-...';
|
|
$OPENAI_MODEL = 'gpt-4o-mini'; // optional, Standard falls leer
|