Skip to content

QVAC-14243 doc[skiplog]: migrate for production#1057

Merged
BrunoCampana merged 3 commits into
docs-productionfrom
main
Mar 20, 2026
Merged

QVAC-14243 doc[skiplog]: migrate for production#1057
BrunoCampana merged 3 commits into
docs-productionfrom
main

Conversation

@BrunoCampana

Copy link
Copy Markdown
Contributor

Prepare prod env for release.

donriddo and others added 3 commits March 20, 2026 13:42
* fix: fix race condition in LLM example download utility

The redirect handler in examples/utils.js called fs.unlink fire-and-forget
then immediately recursed into downloadModel. The recursive call could find
the empty file still on disk (existsSync → true) before unlink completed,
causing an ENOENT crash on the subsequent statSync.

Port the proven download pattern from test/integration/utils.js:
- Wait for unlink callback before recursing on redirect
- Handle 307/308 redirects (HuggingFace uses 302)
- Handle relative redirect URLs
- Use safeResolve/safeReject guards to prevent double settlement
- Add response error handler and fileStream error handler

* fix: use URL constructor for safer redirect resolution


* fix: fix race condition in embed and diffusion download utilities

Port the proven download pattern from the LLM package (PR #1019):
- Wait for fs.unlink callback before recursing on redirect
- Add safeResolve/safeReject guards to prevent double settlement
- Handle 307/308 redirects in embed examples/utils.js
- Add fileStream and response error handlers
- Use URL constructor for safer redirect resolution
- Use close event instead of finish for write completion


---------

Co-authored-by: gianni-cor <gianfranco.cordella@tether.io>
…s - key features - add openAI-compatible API (#1033)
…oved randomly created (#1051)

* doc: generate API docs for v0.8.0

* chore[notask]: remove accidentally committed file

* fix: fix docs build and escape MDX curly braces in errors.mdx and removed random

* fix: revert pre-build script

---------

Co-authored-by: Bruno Campana <7632562+BrunoCampana@users.noreply.github.com>
@BrunoCampana BrunoCampana self-assigned this Mar 20, 2026
@BrunoCampana BrunoCampana requested review from a team as code owners March 20, 2026 12:52
@BrunoCampana BrunoCampana added the documentation Improvements or additions to documentation label Mar 20, 2026
Comment thread docs/website/scripts/generate-api-docs.ts Dismissed
Comment thread docs/website/scripts/generate-api-docs.ts Dismissed
@github-actions

Copy link
Copy Markdown
Contributor

Tier-based Approval Status

**PR Tier:** TIER1

**Current Status:** ❌ PENDING

**Requirements:**
- 1 Team Member approval ❌ (0/1)
- 1 Team Lead OR Management approval ❌ (0/1)



---
*This comment is automatically updated when reviews change.*

@BrunoCampana BrunoCampana merged commit 11031d0 into docs-production Mar 20, 2026
10 of 15 checks passed
Proletter pushed a commit that referenced this pull request May 24, 2026
* fix: fix race condition in LLM example download utility (#1019)

* fix: fix race condition in LLM example download utility

The redirect handler in examples/utils.js called fs.unlink fire-and-forget
then immediately recursed into downloadModel. The recursive call could find
the empty file still on disk (existsSync → true) before unlink completed,
causing an ENOENT crash on the subsequent statSync.

Port the proven download pattern from test/integration/utils.js:
- Wait for unlink callback before recursing on redirect
- Handle 307/308 redirects (HuggingFace uses 302)
- Handle relative redirect URLs
- Use safeResolve/safeReject guards to prevent double settlement
- Add response error handler and fileStream error handler

* fix: use URL constructor for safer redirect resolution


* fix: fix race condition in embed and diffusion download utilities

Port the proven download pattern from the LLM package (PR #1019):
- Wait for fs.unlink callback before recursing on redirect
- Add safeResolve/safeReject guards to prevent double settlement
- Handle 307/308 redirects in embed examples/utils.js
- Add fileStream and response error handlers
- Use URL constructor for safer redirect resolution
- Use close event instead of finish for write completion


---------

Co-authored-by: gianni-cor <gianfranco.cordella@tether.io>

* doc: update README - table of packages - add diffusion and diagnostics - key features - add openAI-compatible API (#1033)

* fix: fix docs build and escape MDX curly braces in errors.mdx and removed randomly created (#1051)

* doc: generate API docs for v0.8.0

* chore[notask]: remove accidentally committed file

* fix: fix docs build and escape MDX curly braces in errors.mdx and removed random

* fix: revert pre-build script

---------

Co-authored-by: Bruno Campana <7632562+BrunoCampana@users.noreply.github.com>

---------

Co-authored-by: Ridwan Taiwo <donriddo@gmail.com>
Co-authored-by: gianni-cor <gianfranco.cordella@tether.io>
Co-authored-by: Giacomo <119889121+GiacomoSorbiWork@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants