ulysses/static
Sirsyorrz 09acf955f1
models: dedupe endpoints by base_url on create (#266)
POST /api/model-endpoints always inserted a new row, so Settings -> Add
Models -> Scan for Servers re-added any endpoint a user had already
registered manually — once under its model name (from the earlier
manual add) and again under its host:port (auto-generated when scan
posts without a name). The success toast then misreported the result
as "added N new".

Look up an existing endpoint with the same base_url accessible to the
caller (shared or owned by them) before inserting. If found, return it
with `existing: true` so the client can tell the difference between
an actual add and a dedupe hit. Toast now reads, e.g.,
"Found 1 server with 1 model — 1 already added".

Tested: POSTing the same base_url three times (incl. trailing-slash
variation) returns the same id each time; only one row exists.
2026-06-01 14:22:06 +09:00
..
fonts Odysseus v1.0 2026-05-31 23:58:26 +09:00
js models: dedupe endpoints by base_url on create (#266) 2026-06-01 14:22:06 +09:00
lib Odysseus v1.0 2026-05-31 23:58:26 +09:00
app.js Sidebar Chat button Quality of Life improvement. (#155) 2026-06-01 02:52:10 +00:00
index.html Move email account management to integrations 2026-06-01 13:01:33 +09:00
landing.html Fix landing footer snap and uvicorn docs 2026-06-01 10:51:55 +09:00
login.html Odysseus v1.0 2026-05-31 23:58:26 +09:00
manifest.json Odysseus v1.0 2026-05-31 23:58:26 +09:00
style.css Keep email reader height stable while loading 2026-06-01 14:19:07 +09:00
sw.js Odysseus v1.0 2026-05-31 23:58:26 +09:00