Private/feature 4910 huggingface#6758
Draft
ljluestc wants to merge 4 commits intoChatGPTNextWeb:mainfrom
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #4910
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
中文(CN)
close #4910)。/api/huggingface,后端新增app/api/huggingface.ts,并在统一 provider 路由中完成分发。ClientApi/getClientApi支持 HuggingFace provider。getHeaders()支持读取 HuggingFace API Key。HUGGINGFACE_BASE_URL、ApiPath.HuggingFace、ServiceProvider.HuggingFace、ModelProvider.HuggingFace。.env.template新增HUGGINGFACE_API_KEY、HUGGINGFACE_URL。README.md/README_CN.md新增 HuggingFace 环境变量说明。📝 补充信息 | Additional Information
中文(CN)
npm run lint:失败(已知 ESLint 运行时问题:Cannot read properties of undefined (reading 'loc'),规则unused-imports/no-unused-imports)。npx tsx app/masks/build.ts:通过。BUILD_MODE=standalone npx next build:通过(存在 warnings,但不阻断构建)。node --no-warnings --experimental-vm-modules ./node_modules/jest/bin/jest.js --ci:通过(4/4 suites,17/17 tests)。private/feature-4910-huggingface。private/feature-4910-huggingface-support,两者指向相同提交。