docs(i18n): fix port typo and add RTK Token Saver features

Fix port 201281 -> 20128/v1 typo in README.zh-CN.md diagram, add
RTK Token Saver mention to README.vi.md/README.zh-CN.md, update
Tier 3 free providers to 2026 lineup, and drop hardcoded /tmp
node_modules path from tests/package.json and tests/README.md.
This commit is contained in:
huuanh20
2026-08-05 11:53:19 +07:00
committed by decolua
parent 25e4bf1c6c
commit baebc9a06e
4 changed files with 64 additions and 64 deletions

View File

@@ -4,25 +4,26 @@ Unit tests for the `/v1/embeddings` endpoint implementation.
## Setup
Vitest must be installed globally or in `/tmp/node_modules` (due to npm workspace hoisting from the root Next.js project):
Install test dependencies from the `tests/` directory:
```bash
cd /tmp && npm install vitest
cd tests/ && npm install
```
## Running Tests
```bash
cd tests/
NODE_PATH=/tmp/node_modules /tmp/node_modules/.bin/vitest run --reporter=verbose --config ./vitest.config.js
```
Or using the package script (from the `tests/` directory):
From the `tests/` directory:
```bash
npm test
```
Or run vitest directly with npx:
```bash
npx vitest run --reporter=verbose --config ./vitest.config.js
```
## Test Files
| File | What it tests |

View File

@@ -5,8 +5,8 @@
"type": "module",
"description": "Unit tests for 9router embeddings endpoint",
"scripts": {
"test": "NODE_PATH=/tmp/node_modules /tmp/node_modules/.bin/vitest run --reporter=verbose",
"test:watch": "NODE_PATH=/tmp/node_modules /tmp/node_modules/.bin/vitest --reporter=verbose"
"test": "vitest run --reporter=verbose",
"test:watch": "vitest --reporter=verbose"
},
"devDependencies": {
"vitest": "^4.0.0"