Skip to content

Expand api surface - #1203

Merged
JulienVig merged 22 commits into
mainfrom
1202-expand-api-surface
Aug 14, 2026
Merged

Expand api surface#1203
JulienVig merged 22 commits into
mainfrom
1202-expand-api-surface

Conversation

@hleepfl

@hleepfl hleepfl commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

closes #1202

All commits except the one in the middle are about splitting Models and Tasks.
Now Models get registered through their own route, and creating a Task is just a matter of sending the information, and giving the id of the Model to be used.

For now there is no way to add a new model anymore through API, only through code. When the Rust switch is done, we will see if we can bring it back.

In the same vein, the frontend page to generate a task needs to be slightly reworked to select an existing model instead of uploading a model.json file.

Finally, the commit in the middle is about setting up import aliases (to break up pre-existing import cycles), which brought forward some pre-existing issues with tsconfig file structure. It didn't turn out great but is fixed in the next PR, along with a bunch of new rules to enforce aliases, no cycles and barrel import usage.

@hleepfl
hleepfl force-pushed the 1202-expand-api-surface branch 2 times, most recently from a5c73c1 to 8e008d6 Compare August 7, 2026 11:38
@hleepfl
hleepfl requested review from JulienVig and tharvik August 7, 2026 13:11
@hleepfl
hleepfl marked this pull request as ready for review August 7, 2026 15:26
Comment thread docs/examples/training.ts
Comment thread discojs/src/models/cards/wikitext.ts Outdated
Comment thread webapp/tsconfig.vitest.json Outdated
Comment thread docs/TASK.md Outdated
Comment thread docs/TASK.md Outdated
Comment thread server/src/model_set.ts
Comment thread discojs/src/models/index.ts Outdated
@JulienVig
JulienVig force-pushed the 1202-expand-api-surface branch from 8e008d6 to 6442e36 Compare August 13, 2026 16:17
@JulienVig
JulienVig force-pushed the 1202-expand-api-surface branch from a965cba to 416fe85 Compare August 14, 2026 09:23
@JulienVig
JulienVig merged commit 625c859 into main Aug 14, 2026
20 checks passed
@JulienVig
JulienVig deleted the 1202-expand-api-surface branch August 14, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand API surface

2 participants