feat(friendli): fetch model list dynamically from /v1/models #3402
code-qa.yml
on: pull_request
dependency-review
11s
invisible-chars
6s
check-translations
37s
knip
43s
compile
2m 8s
Matrix: unit-test
Annotations
12 errors and 7 warnings
|
platform-unit-test (ubuntu-latest)
Process completed with exit code 1.
|
|
platform-unit-test (ubuntu-latest)
zoo-code#test:coverage: command (/home/runner/work/Zoo-Code/Zoo-Code/src) /home/runner/setup-pnpm/node_modules/.bin/pnpm run test:coverage exited (1)
|
|
platform-unit-test (ubuntu-latest)
Property 'friendli' is missing in type '{ openrouter: { "valid-model": { maxTokens: number; contextWindow: number; supportsImages: true; supportsPromptCache: false; inputPrice: number; outputPrice: number; }; "another-valid-model": { maxTokens: number; ... 4 more ...; outputPrice: number; }; }; ... 12 more ...; moonshot: {}; }' but required in type 'RouterModels'.
|
|
platform-unit-test (windows-latest)
The strategy configuration was canceled because "unit-test.ubuntu-latest_ubuntu-late" failed
|
|
platform-unit-test (windows-latest)
The operation was canceled.
|
|
compile
Process completed with exit code 2.
|
|
compile
zoo-code#check-types: command (/home/runner/work/Zoo-Code/Zoo-Code/src) /home/runner/setup-pnpm/node_modules/.bin/pnpm run check-types exited (2)
|
|
compile
Property 'getModel' in type 'FriendliHandler' is not assignable to the same property in base type 'BaseOpenAiCompatibleProvider<FriendliModelId>'.
|
|
compile
Type 'number | undefined' is not assignable to type 'number'.
|
|
compile
Type 'string[]' is not assignable to type 'boolean | ("disable" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[] | undefined'.
|
|
compile
Type 'objectOutputType<{ id: ZodString; name: ZodOptional<ZodString>; created: ZodOptional<ZodNumber>; context_length: ZodOptional<ZodNumber>; ... 9 more ...; deprecation_date: ZodOptional<...>; }, ZodTypeAny, "passthrough">' is not assignable to type '{ prompt?: string | undefined; input?: string | undefined; output?: string | undefined; completion?: string | undefined; input_cache_read?: string | undefined; cache_write?: string | undefined; } | undefined'.
|
|
compile
Namespace 'global.jest' has no exported member 'Mocked'.
|
|
invisible-chars
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
dependency-review
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
check-translations
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
knip
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
platform-unit-test (ubuntu-latest)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
platform-unit-test (windows-latest)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
compile
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|