mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
feat: web search available is inferred from env vars
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
export let fileUploadEnabled = true;
|
||||
export let speechRecognitionEnabled = true;
|
||||
|
||||
export let webSearchAvailable = true; // TODO: Default to false
|
||||
export let webSearchAvailable = false;
|
||||
export let useWebSearch = false;
|
||||
|
||||
export let prompt = '';
|
||||
|
||||
@@ -129,6 +129,7 @@ type Config = {
|
||||
default_models?: string[];
|
||||
default_prompt_suggestions?: PromptSuggestion[];
|
||||
trusted_header_auth?: boolean;
|
||||
websearch?: boolean;
|
||||
};
|
||||
|
||||
type PromptSuggestion = {
|
||||
|
||||
@@ -977,4 +977,5 @@
|
||||
{messages}
|
||||
{submitPrompt}
|
||||
{stopResponse}
|
||||
webSearchAvailable={$config.websearch ?? false}
|
||||
/>
|
||||
|
||||
@@ -994,5 +994,6 @@
|
||||
{messages}
|
||||
{submitPrompt}
|
||||
{stopResponse}
|
||||
webSearchAvailable={$config.websearch ?? false}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user