docs: document Atlas tools and OpenRouter routing

Document the Atlas comparison default, the custom trip tag inputs and the OpenRouter upstream setting.
This commit is contained in:
Maurice
2026-12-06 16:04:32 +01:00
parent dcbabe998b
commit bbaedc5aa9
3 changed files with 10 additions and 6 deletions
+3 -2
View File
@@ -318,7 +318,7 @@ randomly generated password that is printed to the server log. Once any user exi
## AI Assistant
The AI Assistant addon has no environment variables for its provider. The AI connection (provider, API key or sign-in) is set up inside TREK, and its secrets are encrypted with `ENCRYPTION_KEY`. `LLM_TIMEOUT_MS` and `LLM_MAX_OUTPUT_TOKENS` under [Booking Import](#booking-import-kde-itinerary) bound the AI calls.
Set up the AI connection (provider, API key or sign-in) inside TREK. Its secrets are encrypted with `ENCRYPTION_KEY`. `OPENROUTER_PROVIDER` optionally fixes the upstream provider for an OpenRouter connection. See [Advanced / Tuning](#advanced--tuning) for the AI call limits.
---
@@ -366,7 +366,7 @@ both come back empty. `LOG_LEVEL=debug` additionally passes the extractor's raw
the Reservations panel is hidden only when **neither** extractor is available — an instance running the AI Parsing
addon still offers it with `bookingImport: false`.
Booking import can also fall back to an AI model for documents KDE Itinerary can't read. That feature (the **AI Parsing** addon) is configured in the UI; the only environment variables it reads are `LLM_TIMEOUT_MS` and `LLM_MAX_OUTPUT_TOKENS` below. See [AI-Booking-Import](AI-Booking-Import).
Booking import can also fall back to an AI model for documents KDE Itinerary can't read. Configure the **AI Parsing** addon in the UI. The limits and the optional OpenRouter provider are listed under [Advanced / Tuning](#advanced--tuning). See [AI-Booking-Import](AI-Booking-Import).
---
@@ -563,6 +563,7 @@ next key rotation or admin reset would quietly switch the file back to WAL.
| `OVERPASS_TIMEOUT_MS` | Per-endpoint timeout (in milliseconds) for Overpass POI requests. Endpoints race in parallel and one that hasn't answered within this window is abandoned so a faster mirror can win. The query itself gives Overpass 20 seconds of work, so a lower value hangs up on answers that were still coming; that is why the default rose from `12000` in 4.3.0. Drop any lower value you set by hand, and raise it only for a slow self-hosted Overpass instance. The Tours search along a tour does not read it: it gives Overpass 10 seconds of work and waits 12, because someone is waiting for the list. Invalid values abort startup. | `25000` |
| `LLM_TIMEOUT_MS` | How long (in milliseconds) one AI-parsing call may take before it is abandoned. One ceiling for every provider, applied to the abort signal and to the underlying HTTP client alike. The default is generous so heavier parsing work fits without a code change; lower it if you use a cloud provider and would rather fail fast. Invalid values abort startup. | `900000` (15 min) |
| `LLM_MAX_OUTPUT_TOKENS` | The longest answer (in tokens) one AI-parsing call may ask the model for, sent to every provider. A document with many bookings needs a long answer; when the model hits the cap the import says so and names this variable. Raise it for such documents, but keep prompt plus cap inside the context your model has, or the server refuses the request. Unset keeps each provider's own cap. A whole number from 256 to 1000000, anything else aborts startup. | `4096` (OpenAI-compatible), `8192` (Anthropic) |
| `OPENROUTER_PROVIDER` | Optional upstream provider slug for OpenRouter assistant chat and booking extraction. Leave unset to keep OpenRouter's routing and fallbacks. | unset |
| `GOOGLE_LIST_DATA_BASE` | HTTP(S) base URL of a list-data service. A pasted URL starting with this base is fetched and parsed directly; the URL's origin must also match the base so a lookalike host cannot bypass the URL guard. A failed direct import reports an error without falling back to Google. Unset or a nonmatching URL uses the original Google flow. | Unset |
> **Routing is mostly not set here.** With the TREK services, their Valhalla calculates every route TREK draws and OSRM takes over a day it cannot answer; `TREK_VALHALLA_URL` only points at another copy of it. Engines of your own are set by an admin under **Admin → User Defaults** as **Routing service**, **Own routing engine** and **Own Valhalla instance**, and they take effect after a restart. `OVERPASS_URL` and `OVERPASS_TIMEOUT_MS` above also apply to the road trip's search along the route.
+4 -1
View File
@@ -55,8 +55,11 @@ Requires `atlas:read` or `atlas:write` scope.
| Tool | Description |
|---|---|
| `mark_country_visited` | Mark a country as visited using its ISO 3166-1 alpha-2 code (e.g. `"FR"`, `"JP"`). The answer's `after` says where the country stands now and how many countries count as visited. |
| `unmark_country_visited` | Remove a country from your visited list. The answer's `after` says where the country stands now (a country your trips put on the map stays) and how many countries count as visited. |
| `unmark_country_visited` | Remove a country from your visited list. The answer's `after` says where the country stands now (the country is hidden even when derived from a trip) and how many countries count as visited. |
| `get_atlas_stats` | Get atlas statistics — visited country counts, region counts, and continent breakdown. |
| `list_atlas_flight_routes` | List your flown routes, with both directions counted together, and airport counts and flight totals. |
| `list_atlas_badges` | List your Atlas badges with tier, progress and the year earned when available. |
| `list_atlas_travellers` | Compare selected users on the same instance by visited countries, region and continent counts, flight distance and earned badges. The comparison is on by default. Users can hide their profiles, and an admin can disable the comparison for the instance. |
| `list_visited_regions` | List all manually visited sub-country regions for the current user. |
| `locate_atlas_region` | Resolve a coordinate to the country and region codes the Atlas map can highlight, which is where the pair `mark_region_visited` expects comes from. A point outside every bundled polygon answers with `null` fields rather than an error. For a postal address use `reverse_geocode` instead. |
| `mark_region_visited` | Mark a sub-country region as visited (e.g. `"US-CA"`). The answer's `after` also counts the visited regions of that country. On all four mark tools `after` is left out when the atlas cannot be read back; the change itself stands. |
+3 -3
View File
@@ -32,9 +32,9 @@ Requires `trips:read` or `trips:write` scope.
| Tool | Description |
|---|---|
| `list_trips` | List all trips you own or are a member of. Supports `include_archived` flag. |
| `create_trip` | Create a trip with title, dates, and currency. Days are auto-generated from the date range. Without a currency the trip takes your display currency (Settings → General, or the admin's User Defaults preset), and EUR when that is left on *Trip currency*; see [Currencies](Currencies). |
| `update_trip` | Update a trip's title, description, dates, or currency, and with `costs_mode` whether Costs splits the expenses between the travelers (`split`) or keeps the totals only (`totals`); the costs mode needs `budget_edit` instead of `trip_edit`. Day plans follow their position, so dates that hold fewer days remove the last days with what is on them, also when only the start moved later. Every day a change removes is listed in `removed_days`, with its id, number and date as they stood before and a reason: `overflow` for a day past the new range, `spare` for an empty day without a date. |
| `list_trips` | List all trips you own or are a member of. Supports `include_archived` and an optional `tag` filter matched case-insensitively. |
| `create_trip` | Create a trip with title, dates, currency and optional custom `tags`. Days are auto-generated from the date range. Without a currency the trip takes your display currency (Settings → General, or the admin's User Defaults preset), and EUR when that is left on *Trip currency*; see [Currencies](Currencies). |
| `update_trip` | Update a trip's title, description, dates, or currency, and with `costs_mode` whether Costs splits the expenses between the travelers (`split`) or keeps the totals only (`totals`); the costs mode needs `budget_edit` instead of `trip_edit`. Day plans follow their position, so dates that hold fewer days remove the last days with what is on them, also when only the start moved later. Every day a change removes is listed in `removed_days`, with its id, number and date as they stood before and a reason: `overflow` for a day past the new range, `spare` for an empty day without a date. Replace custom tags with `tags` (`[]` clears them), or use `add_tags` and `remove_tags` without `tags`. |
| `search_cover_images` | Search Unsplash for candidate cover photos and return their URLs, thumbnails and photographer credits. Nothing is saved; pass the chosen photo's URL to `update_trip` as `cover_image`. |
| `delete_trip` | Delete a trip. Owner only. Requires `trips:delete`. |
| `list_trip_members` | List the owner and all collaborators of a trip. |