From d09f1942f0145656077b71706efe358d61c362da Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Fri, 1 May 2026 22:39:11 +0200 Subject: [PATCH] Fix Mistral provider: change api from openai-completions to mistral-conversations --- TODO.md | 45 ++++++-------------------------------- app/storage/xamxam.db-shm | Bin 32768 -> 0 bytes app/storage/xamxam.db-wal | 0 3 files changed, 7 insertions(+), 38 deletions(-) delete mode 100644 app/storage/xamxam.db-shm delete mode 100644 app/storage/xamxam.db-wal diff --git a/TODO.md b/TODO.md index 0a96f71..e89b3f2 100644 --- a/TODO.md +++ b/TODO.md @@ -1,40 +1,9 @@ -# XAMXAM TODO +# TODO -## File Upload & Display System +- [x] Investigate Mistral API 404 error +- [x] Fix Mistral provider configuration (changed api to "mistral-conversations" and baseUrl to "https://api.mistral.ai") -- [x] **DB migration 007** — add `sort_order` and `display_label` columns to `thesis_files` -- [x] **Database.php** — `getThesisFiles` ordered by `sort_order ASC`; `insertThesisFile` accepts `display_label` + `sort_order`; new `reorderThesisFiles()` and `updateThesisFileLabel()` methods -- [x] **ThesisCreateController** — expand MIME/ext allowlist (audio: mp3/ogg/wav/flac/aac/m4a; video: webm/mov/ogv; image: gif/webp; archives: tar/gz; any-ext via octet-stream); raise max size to 500 MB; accept `file_labels[]` and `file_orders[]` POST fields; `detectFileType()` helper -- [x] **ThesisEditController** — same expansions; handle `file_sort_order[]`, `file_label[id]` POST fields; reorder + label-update methods called; `detectFileType()` helper -- [x] **MediaController** — expanded MIME allowlist; HTTP Range support for audio/video seeking; force-download for "other" types; inline display for known displayable types -- [x] **fieldset-files.php** (shared partial) — replaced old multi-file input with sortable queue UI using SortableJS; per-file label inputs; wide accept attribute; 500 MB hint -- [x] **templates/admin/edit.php** — existing files rendered as sortable list with drag handles, file type icons, label inputs, delete checkboxes; hidden `file_sort_order[]` inputs; new-file queue widget -- [x] **file-upload-queue.js** — new JS: sortable queue for new uploads (SortableJS), per-file label fields, hidden order fields injected on submit; existing-file drag-sort; backward-compatible legacy preview for cover/banner inputs -- [x] **tfe.php** (public template) — handles audio (`