Give any model the current date and time.
The opendunes:datetime helper gives any model the current date and time — for scheduling, for "this week", for anything the model cannot know from its training.
curl https://opendunes.com/v1/chat/completions \
-H "Authorization: Bearer $OPENDUNES_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-5",
"messages": [{ "role": "user", "content": "How many days until the 1st of November?" }],
"tools": [{ "type": "opendunes:datetime", "parameters": { "timezone": "Africa/Algiers" } }]
}'It works the same on /v1/responses and /v1/messages.
| Parameter | Does |
|---|---|
timezone | an IANA time zone name, such as Africa/Algiers. Default UTC |
No charge beyond the model's tokens. A call counts as one of the request's 30 helper steps.