-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ refactor: Remove redundant payload remapping in client-fetch #5267
base: main
Are you sure you want to change the base?
Conversation
@cy948 is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
👍 @cy948 Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5267 +/- ##
==========================================
+ Coverage 92.13% 92.19% +0.05%
==========================================
Files 570 570
Lines 43600 43755 +155
Branches 4057 2712 -1345
==========================================
+ Hits 40172 40340 +168
+ Misses 3428 3415 -13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
case ModelProvider.Azure: { | ||
providerOptions = { | ||
apiKey: providerAuthPayload?.apiKey, | ||
apiVersion: providerAuthPayload?.azureApiVersion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apiVersion 应该也要透传吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改 b4ab60c
case ModelProvider.Cloudflare: { | ||
providerOptions = { | ||
apikey: providerAuthPayload?.apiKey, | ||
baseURLOrAccountID: providerAuthPayload?.cloudflareBaseURLOrAccountID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有 baseURLOrAccountID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改 b4ab60c
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
src/services/__tests__/_auth.test.ts
: 补充针对客户端请求的Auth payload
检查。src/services/_auth.ts
: 针对客户端请求的Auth payload
映射。src/services/chat.ts
: 移除冗余的客户端请求Auth payload
重映射。📝 补充信息 | Additional Information