summaryrefslogtreecommitdiff
path: root/searx/settings.yml
diff options
context:
space:
mode:
authorZhijie He <hezhijie0327@hotmail.com>2024-06-08 22:16:27 +0800
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-09-23 07:02:10 +0200
commit6be56aee11e5b2bd2a95479578349a561ab7ff2e (patch)
tree5341ada78c6ef0363ec0fd217f736533aef3b052 /searx/settings.yml
parent14241e7dac009d3f58c0c168d6ab5a8131c8ece9 (diff)
downloadsearxng-6be56aee11e5b2bd2a95479578349a561ab7ff2e.tar.gz
searxng-6be56aee11e5b2bd2a95479578349a561ab7ff2e.zip
add Cloudflare AI Gateway engine
add Cloudflare AI Gateway engine add settings for Cloudflare AI Gateway engine set utf8 encode for data, fix non english char cause 500 error format json data fixed indentation and config format error fix line-length limitation in CI reformatted code for CI reformatted code for CI limit system prompts to less 120 chars cleanup unused variable & format code
Diffstat (limited to 'searx/settings.yml')
-rw-r--r--searx/settings.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/searx/settings.yml b/searx/settings.yml
index 3a09ca076..44245ab7c 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -482,6 +482,23 @@ engines:
# to show premium or plus results too:
# skip_premium: false
+ - name: cloudflareai
+ engine: cloudflareai
+ shortcut: cfai
+ # get api token and accont id from https://developers.cloudflare.com/workers-ai/get-started/rest-api/
+ cf_account_id: 'your_cf_accout_id'
+ cf_ai_api: 'your_cf_api'
+ # create your ai gateway by https://developers.cloudflare.com/ai-gateway/get-started/creating-gateway/
+ cf_ai_gateway: 'your_cf_ai_gateway_name'
+ # find the model name from https://developers.cloudflare.com/workers-ai/models/#text-generation
+ cf_ai_model: 'ai_model_name'
+ # custom your preferences
+ # cf_ai_model_display_name: 'Cloudflare AI'
+ # cf_ai_model_assistant: 'prompts_for_assistant_role'
+ # cf_ai_model_system: 'prompts_for_system_role'
+ timeout: 30
+ disabled: true
+
# - name: core.ac.uk
# engine: core
# categories: science