feat: add get_current_time built-in tool and timezone config

Fetches real time via HTTP Date header (works through proxy),
sets system clock, and returns formatted local time to the agent.
Also adds MIMI_TIMEZONE config and updates default model to claude-opus-4-5.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
crispyberry
2026-02-07 13:05:02 +08:00
parent 041fd6b59e
commit 78c7fc9b1a
6 changed files with 190 additions and 1 deletions

View File

@@ -52,8 +52,11 @@
#define MIMI_AGENT_MAX_TOOL_ITER 10
#define MIMI_MAX_TOOL_CALLS 4
/* Timezone (POSIX TZ format) */
#define MIMI_TIMEZONE "PST8PDT,M3.2.0,M11.1.0"
/* LLM */
#define MIMI_LLM_DEFAULT_MODEL "claude-opus-4-6"
#define MIMI_LLM_DEFAULT_MODEL "claude-opus-4-5"
#define MIMI_LLM_MAX_TOKENS 4096
#define MIMI_LLM_API_URL "https://api.anthropic.com/v1/messages"
#define MIMI_LLM_API_VERSION "2023-06-01"