Skip to content

added web-llm as llm provider #143

added web-llm as llm provider

added web-llm as llm provider #143

Triggered via push October 23, 2024 10:12
Status Failure
Total duration 1m 31s
Artifacts 3

partial-test.yml

on: push
Matrix: fast-test
Matrix: fast-build
Matrix: fast-e2e-test
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 warnings
fast-test (units)
Error: require() of ES Module /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/node_modules/.pnpm/@mlc-ai[email protected]/node_modules/@mlc-ai/web-llm/lib/index.js from /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/src/llms/web-llm.ts not supported. Instead change the require of index.js in /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/src/llms/web-llm.ts to a dynamic import() which is available in all CommonJS modules. at ../src/llms/web-llm.ts:7 5 | 6 | export default class WebLLM implements LLMProviders { > 7 | | ^ 8 | private static readonly DEFAULT_MODEL: string = 'Qwen2-7B-Instruct-q4f32_1-MLC' 9 | 10 | private readonly model: string at Object.<anonymous> (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/src/llms/web-llm.ts:7:15) at Object.<anonymous> (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/src/llms/index.ts:10:38) at Object.<anonymous> (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/units/llm.spec.ts:5:36)
fast-test (units)
Process completed with exit code 1.
fast-test (integrations)
Error: require() of ES Module /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/node_modules/.pnpm/@mlc-ai[email protected]/node_modules/@mlc-ai/web-llm/lib/index.js from /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/src/llms/web-llm.ts not supported. Instead change the require of index.js in /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/src/llms/web-llm.ts to a dynamic import() which is available in all CommonJS modules. at ../src/llms/web-llm.ts:7 5 | 6 | export default class WebLLM implements LLMProviders { > 7 | | ^ 8 | private static readonly DEFAULT_MODEL: string = 'Qwen2-7B-Instruct-q4f32_1-MLC' 9 | 10 | private readonly model: string at Object.<anonymous> (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/src/llms/web-llm.ts:7:15) at Object.<anonymous> (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/src/llms/index.ts:10:38) at Object.<anonymous> (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/integrations/summarizer.spec.ts:5:36)
fast-test (integrations)
Process completed with exit code 1.
fast-test (units)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
fast-test (integrations)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

Artifacts

Produced during runtime
Name Size
chrome-mv3 Expired
46.7 MB
chromium-mv3 Expired
46.7 MB
edge-mv3 Expired
46.7 MB