Closed lloydzhou closed 2 months ago
@lloydzhou is attempting to deploy a commit to the NextChat Team on Vercel.
A member of the Team first needs to authorize it.
The updates primarily focus on refining the handling of API URLs and localization text in the application. The GeminiProApi
class now correctly manages the baseUrl
for Google services, the ApiPath
enum gets a new value for Google, and text labels in the Chinese localization file are updated for clarity. Additionally, access.ts
has been refactored to streamline default URL assignments based on the application context.
File | Change Summary |
---|---|
app/client/platforms/google.ts |
Base URL logic modified to handle undefined baseUrl and avoid duplicate slashes. |
app/constant.ts |
Added enum value Google with path "/api/google" to ApiPath . |
app/locales/cn.ts |
Updated text labels for API and Secret keys for Baidu services, changing titles to "API Key" and "Secret Key". |
app/store/access.ts |
Refactored default API URL assignments to use a single isApp variable, simplifying and consolidating logic. |
In lines of code, so neat and clear,
URLs now align, no slashes to fear.
Keys for Baidu, with names anew,
And enums fresh for Google’s view.
Simplified paths, inaccess.ts
they gleam,
Refactored logic, a coder’s dream.
🎉🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Refactor
Internationalization