Automate checklist-backend updates
This commit is contained in:
@@ -116,9 +116,14 @@ curl -X POST https://mcp.nearle.ai.in/api/uploads/catalog \
|
||||
| `files` | **required** | The spreadsheets. Repeat the field for more than one; up to 20. |
|
||||
| `sender` | optional | A label for the inbox, so the admin can see who sent what. Free text, trimmed to 60 chars. Defaults to `anonymous`. |
|
||||
|
||||
`use_llm` and `fetch_images` are **no longer accepted here.** They decide how a run
|
||||
behaves and commit the host to outbound work, so the choice belongs to the admin
|
||||
pressing Start — not to the sender. Passing them is inert.
|
||||
`use_llm` and `fetch_images` are **not accepted here.** They commit the host to
|
||||
outbound work, and this endpoint's caller is anonymous, so the choice is not theirs to
|
||||
make. Passing them is inert — the response reports what was actually used.
|
||||
|
||||
Both are **on** for an auto-started run: image search fills the product images, and the
|
||||
LLM fills blank descriptions wherever an Ollama server is reachable. There is none in
|
||||
production today, so in practice descriptions arrive exactly as your sheet wrote them
|
||||
and the run is otherwise unaffected.
|
||||
|
||||
### Which columns are read
|
||||
|
||||
@@ -163,7 +168,7 @@ The bad file is kept as a failed member rather than dropped, so a sender who sub
|
||||
"files_done": 0,
|
||||
"files_failed": 1,
|
||||
"current_file": null,
|
||||
"use_llm": false, // UPLOAD_AUTORUN_USE_LLM
|
||||
"use_llm": true, // UPLOAD_AUTORUN_USE_LLM
|
||||
"fetch_images": true, // UPLOAD_AUTORUN_FETCH_IMAGES
|
||||
"runner": "inprocess",
|
||||
"totals": { "rows_total": 0, "products_built": 0, "inserted": 0,
|
||||
|
||||
Reference in New Issue
Block a user