avsolatorio commited on
Commit
0e20925
·
1 Parent(s): e8809f1

Update language handling and store logs

Browse files

Signed-off-by: Aivin V. Solatorio <avsolatorio@gmail.com>

Files changed (1) hide show
  1. mcp_openai_client.py +3 -0
mcp_openai_client.py CHANGED
@@ -37,6 +37,8 @@ SYSTEM_PROMPT = f"""You are a helpful assistant. Today is {datetime.now().strfti
37
 
38
  You **do not** have prior knowledge of the World Development Indicators (WDI) data. Instead, you must rely entirely on the tools available to you to answer the user's questions.
39
 
 
 
40
  When responding you must always plan the steps and enumerate all the tools that you plan to use to answer the user's query.
41
 
42
  ### Your Instructions:
@@ -279,6 +281,7 @@ class MCPClientWrapper:
279
  previous_response_id=previous_response_id
280
  if previous_response_id.strip()
281
  else None,
 
282
  )
283
 
284
  is_tool_call = False
 
37
 
38
  You **do not** have prior knowledge of the World Development Indicators (WDI) data. Instead, you must rely entirely on the tools available to you to answer the user's questions.
39
 
40
+ Detect the language of the user's query and use that language for your response, unless the user specifies otherwise.
41
+
42
  When responding you must always plan the steps and enumerate all the tools that you plan to use to answer the user's query.
43
 
44
  ### Your Instructions:
 
281
  previous_response_id=previous_response_id
282
  if previous_response_id.strip()
283
  else None,
284
+ store=True, # Store the response in the OpenAIlogs
285
  )
286
 
287
  is_tool_call = False