diff --git a/public/index.html b/public/index.html
index c0bb0dffa..abaf6b6c5 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1963,6 +1963,9 @@
Use search capabilities provided by the backend.
+
+ Not free, adds a $0.02 fee to each prompt.
+
diff --git a/public/scripts/openai.js b/public/scripts/openai.js
index 62c0bde9c..96afac719 100644
--- a/public/scripts/openai.js
+++ b/public/scripts/openai.js
@@ -1693,6 +1693,11 @@ function calculateOpenRouterCost() {
}
}
+ if (oai_settings.enable_web_search) {
+ const webSearchCost = (0.02).toFixed(2);
+ cost = t`${cost} + $${webSearchCost}`;
+ }
+
$('#openrouter_max_prompt_cost').text(cost);
}
@@ -5700,6 +5705,7 @@ export function initOpenAI() {
$('#openai_enable_web_search').on('input', function () {
oai_settings.enable_web_search = !!$(this).prop('checked');
+ calculateOpenRouterCost();
saveSettingsDebounced();
});