v0.45 Release: The Whole Platform Through the API
v0.44 let every user download a copy of what they had built, but only by clicking a button in the web console. v0.45 puts that and three other console-only features into the public API, where the Python, Node.js and Go SDKs can reach them. Extensions, token usage, data exports and Vectorsearch runs now have documented routes under /api/v1.
The rest of the release is about correctness. A chat’s follow-up question no longer loses the conversation, the workbench keeps its chat when you come back to it, and stricter type checking found a handful of real bugs that the tests had missed.
| Change | What it does |
|---|---|
| Extensions API | List, install, upload, enable, configure, update, roll back and uninstall extensions with an API key. |
| Token usage API | Read the token usage that the dashboard charts, by period. |
| Data exports API | Start a Download My Data export and follow its progress from code. |
| Vectorsearch runs | Run a Vectorsearch against its vectorstore with a query, where the route used to answer 405. |
| Conversations that hold | A follow-up prompt always sees the conversation before it, even when it arrives right after the previous answer. |
| A workbench that remembers | Leaving the Prompt Engineer’s Workbench and coming back resumes the same chat. |
Four features, now in the API
Until v0.45, managing extensions, reading token usage and Download My Data lived behind the web console’s private routes, which take a browser session rather than an API key. A Vectorsearch had a public route, but it answered 405. So none of them was something the SDKs could offer, or a script could automate.
All four are now part of the public API, described in its OpenAPI document, with 25 new operations. Every existing operation and schema is unchanged.
Extensions
/api/v1/extensions/ lists the extensions your account may use, shows the registry and one extension by its slug. Its actions install from the registry, upload an archive, check for updates, enable, disable, update, roll back, configure, set availability and uninstall.
- Reads are for every user. Each user sees only what their account may use.
- Actions are for superusers. A user who isn’t one gets a 403.
- One implementation. The console’s extension pages and the new API share the same code, so they can’t disagree.
Token usage and data exports
GET /api/v1/accounts/usage/returns the series that the dashboard’s Token Usage chart draws, e.g.?periodicity=24_hours.POST /api/v1/accounts/data-exports/starts a Download My Data export. It answers 202 when it starts one, 200 when one is already running, and 429 once you have used the day’s five.GET /api/v1/accounts/data-exports/<id>/follows an export’s progress. The emailed download link is never in a response, so the link is still the only key.
Every user may call these, for their own data.
Vectorsearch runs
POST /api/v1/vectorsearches/<id>/vectorsearch/ takes a query and an optional filter, and searches the Vectorsearch’s vectorstore with its own search type, result count, threshold and MMR settings.
curl -X POST https://<your-smarter>/api/v1/vectorsearches/<id>/vectorsearch/ \
-H "Authorization: Token <your Smarter API key>" \
-H "Content-Type: application/json" \
-d '{"query": "Which courses cover AI?"}'
- A caller can narrow a search but never widen it. The Vectorsearch’s own
metadataFilterwins over the request’s filter. - The usual rules apply. It needs read permission on the Vectorsearch, refuses a disabled one with a 400, and checks budgets, answering 402 when one is spent.
In the SDKs
The Python, Node.js and Go SDKs call all four. The Node.js and Go SDKs also raise a dedicated error on a budget’s 402, and don’t retry a data export that was refused with a 429.
Conversations that hold together
A chat’s follow-up was sometimes answered as if it were the first message. Asked what 2 to the 10th power is, then to divide that by 4, an LLMClient answered 1.9375 or 2 instead of 256. The follow-up’s request to the LLM held only its own message.
Each prompt rebuilds the conversation from the saved history of the one before it. That history was saved by a background task after the response went out, so a follow-up that arrived before the worker got to it found no history and started over. Streamed follow-ups lost that race most often.
v0.45 saves the history in the prompt itself, before its response returns. It costs one database insert. If the save fails, Smarter falls back on the background task, so the history is still saved.
Web console improvements
v0.45 brings smarter-console from v1.1.7 to v1.1.11.
- The workbench keeps its chat. Starting a chat in the Prompt Engineer’s Workbench, visiting another console page and coming back started a new, empty chat. The chat’s session cookie was saved under the workbench’s own path, which the browser hides from a console that was loaded at any other page. It is now saved for the whole site. A second cause, two configuration requests racing each other when the chat starts, is fixed too.
- Images with parentheses in their address display. A reply that showed an image from a CDN whose address held resizing filters, such as
filters:format(webp), showed only the image’s description. Whether it worked depended on which image the model picked, which is why it came and went.
Behavior changes
- A static plugin manifest needs
staticData. A static plugin answers its tool calls fromspec.data.staticData, but the field was optional, so a manifest without it was applied and created a plugin with nothing to answer. A manifest with nostaticData, or a null one, is now refused with an error that names the field. An empty object is still accepted, and existing plugins are unchanged. - Duplicate API key names are a 400. Describing an API key whose owner has two keys of that name answered 500. It now answers 400, with the instruction to rename all but one.
Fixes and operations
Smarter’s type checker now reads the bodies of the test methods too, where it used to skip every function without annotations. That found bugs in the platform’s own code, and tests that could never fail.
- Provider verifications without a name. Listing them raised an error, because the filter named a field that doesn’t exist.
- The version command. It printed pandas’ whole environment report to the server’s output on every call, and reported pandas’ version as null.
- A Secret’s error message. The error for a Secret without a name or a value printed its encrypted value. It now says only whether one is set.
- Tests that could never fail. Several validation tests checked fields that the model doesn’t have, or a frozen model that refuses any value, and one module never ran at all. They now test what their names say.
- Linting that lints. The flake8 hook had checked nothing since 2023. It now runs pyflakes and pycodestyle on every commit, and a new check fails any change that makes a function more complex than the limit.
- A quieter log. A user with a profile in two accounts, which is normal, logged a warning on every cache miss. It now logs at debug.
- Search engines find the docs. The docs’ sitemap and canonical links pointed to the wrong domain, so Google rejected every page in the sitemap. They point to docs.smarter.sh again, from the next docs build on.
Upgrading
- No migrations. v0.45 changes no database tables.
- Add
staticDatato any static plugin manifest that lacks it before you apply it again. Every static plugin in the project’s example manifests already has one. The SDKs’ manifest models follow at their next contract sync. - Update the SDKs to call the new routes. The Python, Node.js and Go SDKs have them.
- The console is pinned to v1.1.11.
make consoleinstalls it. Developers runmake console,make collectstaticandmake build, as before.
What’s next
With extensions, usage and data exports in the API, nearly everything the web console does can now be done from code. Applying a whole data export back in one step, on the same platform or another, is the other half of moving a project between platforms, and it is still on the way.
The full list of changes is in the changelog. To try the release, start with the documentation, or browse the code of the API and the web console on GitHub.
