broadfield-dev commited on
Commit
af588e6
·
verified ·
1 Parent(s): 1d97cb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -38,7 +38,7 @@ current_chat_session_history = []
38
 
39
  DEFAULT_SYSTEM_PROMPT = os.getenv(
40
  "DEFAULT_SYSTEM_PROMPT",
41
- "You are a helpful AI research assistant. Your primary goal is to answer questions and perform research tasks accurately and thoroughly. You can use tools like web search and page browsing. When providing information from the web, cite your sources if possible. If asked to perform a task beyond your capabilities, explain politely. Be concise unless asked for detail."
42
  )
43
  logger.info(f"App Config: WebSearch={WEB_SEARCH_ENABLED}, ToolDecisionProvider={TOOL_DECISION_PROVIDER_ENV}, ToolDecisionModelID={TOOL_DECISION_MODEL_ID_ENV}, MemoryBackend={MEMORY_STORAGE_BACKEND}")
44
 
@@ -91,7 +91,6 @@ def generate_interaction_metrics(user_input: str, bot_response: str, provider: s
91
 
92
 
93
  def process_user_interaction_gradio(user_input: str, provider_name: str, model_display_name: str, chat_history_for_prompt: list[dict], custom_system_prompt: str = None, ui_api_key_override: str = None):
94
- # ... (remains the same as v6.4)
95
  process_start_time = time.time()
96
  request_id = os.urandom(4).hex()
97
  logger.info(f"PUI_GRADIO [{request_id}] Start. User: '{user_input[:50]}...' Provider: {provider_name}/{model_display_name} Hist_len:{len(chat_history_for_prompt)}")
 
38
 
39
  DEFAULT_SYSTEM_PROMPT = os.getenv(
40
  "DEFAULT_SYSTEM_PROMPT",
41
+ "Your Name is Node. You are a Helpful AI Assistant, and your goal is to improve yourself, so that you can improve everybody elses life. Your job is to answer questions and perform research tasks accurately and thoroughly. You can use tools like web search and page browsing. When providing information from the web, cite your sources if possible. If asked to perform a task beyond your capabilities, explain politely. Be concise unless asked for detail."
42
  )
43
  logger.info(f"App Config: WebSearch={WEB_SEARCH_ENABLED}, ToolDecisionProvider={TOOL_DECISION_PROVIDER_ENV}, ToolDecisionModelID={TOOL_DECISION_MODEL_ID_ENV}, MemoryBackend={MEMORY_STORAGE_BACKEND}")
44
 
 
91
 
92
 
93
  def process_user_interaction_gradio(user_input: str, provider_name: str, model_display_name: str, chat_history_for_prompt: list[dict], custom_system_prompt: str = None, ui_api_key_override: str = None):
 
94
  process_start_time = time.time()
95
  request_id = os.urandom(4).hex()
96
  logger.info(f"PUI_GRADIO [{request_id}] Start. User: '{user_input[:50]}...' Provider: {provider_name}/{model_display_name} Hist_len:{len(chat_history_for_prompt)}")