feat: switch chatbot model to Gemini 2.5 Flash Native Audio Dialog (v1beta)
This commit is contained in:
1 parent
b2ceb2f1fb
commit
12eed10a9f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -174,7 +174,7 @@ if (!function_exists('curl_init')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Gemini API via cURL
|
// Call Gemini API via cURL
|
||||||
$url = "https://generativelanguage.googleapis.com/v1/models/gemini-3.5-flash:generateContent?key=" . urlencode($apiKey);
|
$url = "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-preview-native-audio-dialog:generateContent?key=" . urlencode($apiKey);
|
||||||
|
|
||||||
$ch = curl_init($url);
|
$ch = curl_init($url);
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
|||||||
+1
-1
@@ -103,7 +103,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const url = `https://generativelanguage.googleapis.com/v1/models/gemini-3.5-flash:generateContent?key=${encodeURIComponent(config.apiKey)}`;
|
const url = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-preview-native-audio-dialog:generateContent?key=${encodeURIComponent(config.apiKey)}`;
|
||||||
|
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|||||||
Reference in new issue
Block a user