LibreChat/api/app/clients/tools/util
copilot-swe-agent[bot] 9fe4554a70 Add local timezone datetime support in agent prompts
- Add timezone support to replaceSpecialVars function with dayjs timezone plugin
- Add new special variables: {{local_datetime}} and {{local_date}}
- Update specialVariables config to include new variables
- Pass timezone from client via Intl.DateTimeFormat API
- Add timezone field to TPayload type
- Update all client-side replaceSpecialVars calls to include timezone
- Add comprehensive tests for timezone-aware special variables
- Update web_search tool context to include local datetime when timezone available

Co-authored-by: berry-13 <81851188+berry-13@users.noreply.github.com>
2025-10-21 21:26:26 +00:00
..
fileSearch.js 🔄 refactor: Optimize MCP Tool Initialization 2025-09-21 20:31:28 -04:00
handleOpenAIErrors.js 🧹 chore: Cleanup Logger and Utility Imports (#9935) 2025-10-01 23:30:47 -04:00
handleTools.js Add local timezone datetime support in agent prompts 2025-10-21 21:26:26 +00:00
handleTools.test.js ⚙️ chore: Resolve Build Warning, Package Cleanup, Robust Temp Chat Time (#9962) 2025-10-04 01:53:37 -04:00
index.js 🔍 feat: Mistral OCR API / Upload Files as Text (#6274) 2025-03-10 17:23:46 -04:00