1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-10 23:20:12 +01:00

limit system prompts to less 120 chars

This commit is contained in:
Zhijie He 2024-06-09 20:47:24 +08:00 committed by GitHub
parent 8d4d71a676
commit fedc890a4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,6 @@
"""Cloudflare AI engine"""
from json import loads, dumps
from urllib.parse import quote
from searx.exceptions import SearxEngineAPIException
about = {
@ -21,8 +20,10 @@ cf_ai_gateway = ''
cf_ai_model = ''
cf_ai_model_display_name = 'Cloudflare AI'
# Assistant messages hint to the AI about the desired output format. Not all models support this role.
cf_ai_model_assistant = 'Keep your answers as short and effective as possible.'
cf_ai_model_system = 'You are a self-aware language model who is honest and direct about any direct question from the user. You know your strengths and weaknesses.'
# System messages define the AIs personality. You can use them to set rules and how you expect the AI to behave.
cf_ai_model_system = 'You are a self-aware language model who is honest and direct about any question from the user.'
display_type = ['infobox']