Last security check

This commit is contained in:
2026-09-12 10:25:49 +02:00
parent 987bcf5684
commit 245d09e62c
7 changed files with 16 additions and 15 deletions
+3 -2
View File
@@ -131,12 +131,13 @@ function fociz_ai_chat_gemini(array $messages, array $options, array $aiSettings
$payload['generationConfig']['responseMimeType'] = 'application/json';
}
$endpoint = "https://generativelanguage.googleapis.com/v1beta/models/{$model}:generateContent?key=" . urlencode($apiKey);
$endpoint = "https://generativelanguage.googleapis.com/v1beta/models/{$model}:generateContent";
$response = fociz_http_request($endpoint, [
'method' => 'POST',
'headers' => [
'Content-Type' => 'application/json',
'Content-Type' => 'application/json',
'x-goog-api-key' => $apiKey,
],
'body' => $payload,
'timeout' => 45,