Repository navigation
Spec Sheet Auto Fill
In a vehicle's Spec sheet → Edit specs, Look up data automatically searches the web for the vehicle's engine oil, gearbox and differential oil, brake fluid, coolant, wheel bolt torque and tyre pressure.
Set both keys and restart torq (see Configuration):
TAVILY_API_KEY=tvly-… # https://app.tavily.com, free plan: 1,000 credits per month
GEMINI_API_KEY=… # https://aistudio.google.com/apikey, free tierWithout both keys the button is disabled and says which key is missing.
Note
When the auto-fill runs, the vehicle's make, model, chassis code, year and engine go to Tavily, and those plus HSN/TSN and the search results go to Google. Nothing else leaves your server.
- Gemini names the engine's trade names (e.g. "C 220 CDI" for an OM646 in a W203). They are used as search terms only, never as values.
- torq runs four web searches with Tavily: engine oil, gearbox and differential, coolant and brakes, wheels and tyres. One lookup uses 8 credits, so the free plan covers about 125 lookups a month.
- Gemini picks the values out of these search results.
- torq checks every value before it reaches the form.
A value is kept only if its cited source is one of the search results and the value is written in that result's text: "6,5 Liter" for 6.5 L, "110 Nm" for 110 Nm. Numbers need their unit next to them, and a tyre pressure range such as "2.2–2.4 bar" counts only if the source writes it as one range. Everything else stays empty.
Warning
The check guarantees that a value appears in its source, not that the source is right or that the model picked the right row of a table. Click the source badge and check each value before you save, especially tyre pressures, which depend on tyre size and load.
- Every filled field shows a badge such as ⚡ Auto · carwiki.de ↗ that opens the source in a new tab.
- Also replace filled-in values decides whether existing values are overwritten; by default only empty fields are filled.
- Editing a filled value marks the field Adjusted manually; the other fields keep their sources. Typing the found value back restores the source.
- Nothing is saved until you click Save; Cancel discards everything.
| Message | What to do |
|---|---|
| Not set up on this server | Set TAVILY_API_KEY and GEMINI_API_KEY and restart |
| Gemini model is no longer available | Google retired the model for new keys. Set GEMINI_MODEL to a current one |
| Gemini is overloaded right now | Google reports high demand. torq already retried twice; try again in a minute |
| Gemini quota is used up | The free tier's limit is reached; it resets daily. Check ai.dev/rate-limit |
| Tavily search credits are used up | 1,000 credits per month on the free plan; check app.tavily.com |
| The lookup took more than 3 minutes | The Gemini model is answering slowly; try a faster GEMINI_MODEL
|
| Few or no values found | The search found no source that states them for this vehicle. Fill in engine code, power and model year in the vehicle details for better searches |
Getting started
Features
Operations