Spaces:
Runtime error
Runtime error
Commit
·
c5b40ef
1
Parent(s):
9342992
Update timezone descriptions in OpenAI tools for clarity and regional calendar usage
Browse files
src/services/_bot_actions_service.py
CHANGED
|
@@ -86,6 +86,5 @@ class BotActionService:
|
|
| 86 |
if "user_id" in arguments.keys():
|
| 87 |
arguments["user_id"] = user_id
|
| 88 |
response = await func(**arguments)
|
| 89 |
-
logger.info(f"Function response: {response}")
|
| 90 |
response = f"Context : {response}\n\n# Use this context to respond to the user query"
|
| 91 |
return response
|
|
|
|
| 86 |
if "user_id" in arguments.keys():
|
| 87 |
arguments["user_id"] = user_id
|
| 88 |
response = await func(**arguments)
|
|
|
|
| 89 |
response = f"Context : {response}\n\n# Use this context to respond to the user query"
|
| 90 |
return response
|
src/utils/_openai_client.py
CHANGED
|
@@ -41,7 +41,7 @@ _OPENAI_TOOLS = [
|
|
| 41 |
},
|
| 42 |
"timezone": {
|
| 43 |
"type": "string",
|
| 44 |
-
"description": "The timezone for the available slots",
|
| 45 |
},
|
| 46 |
},
|
| 47 |
"required": ["salesperson_meeting_id", "timezone"],
|
|
@@ -75,7 +75,7 @@ _OPENAI_TOOLS = [
|
|
| 75 |
},
|
| 76 |
"timezone": {
|
| 77 |
"type": "string",
|
| 78 |
-
"description": "The timezone for the
|
| 79 |
},
|
| 80 |
"locale": {
|
| 81 |
"type": "string",
|
|
|
|
| 41 |
},
|
| 42 |
"timezone": {
|
| 43 |
"type": "string",
|
| 44 |
+
"description": "The timezone for the available slots. It must be a tz identifier like America/New_York, Asia/Kolkata, Cuba, etc.Note: We have regional calenders for APAC, EMEA, and North America. Please use the timezone accordingly.",
|
| 45 |
},
|
| 46 |
},
|
| 47 |
"required": ["salesperson_meeting_id", "timezone"],
|
|
|
|
| 75 |
},
|
| 76 |
"timezone": {
|
| 77 |
"type": "string",
|
| 78 |
+
"description": "The timezone for the available slots. It must be a tz identifier like America/New_York, Asia/Kolkata, Cuba, etc.Note: We have regional calenders for APAC, EMEA, and North America. Please use the timezone accordingly.",
|
| 79 |
},
|
| 80 |
"locale": {
|
| 81 |
"type": "string",
|