-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Update Moonshot(Kimi) configs #8280
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
base: main
Are you sure you want to change the base?
Conversation
感谢 Kimi 的同学 |
需要合并一下最新的 main,不然有一些新变更被意外删除了,感谢🤝 |
src/renderer/src/pages/settings/ProviderSettings/ProviderSetting.tsx
Outdated
Show resolved
Hide resolved
src/renderer/src/pages/settings/ProviderSettings/ProviderSetting.tsx
Outdated
Show resolved
Hide resolved
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.
图片大小有点大,可以用 webp 格式,尺寸也可以用更小尺寸
Improves code readability by reformatting Moonshot provider configuration and related ternary expressions. Indentation and spacing are adjusted for consistency, with no functional changes.
@@ -71,8 +70,19 @@ const ProviderSetting: FC<Props> = ({ providerId }) => { | |||
|
|||
const providerConfig = PROVIDER_CONFIG[provider.id] | |||
const officialWebsite = providerConfig?.websites?.official | |||
const platformWebsite = |
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.
这里建议提取一个函数来处理
}, [provider.apiHost, provider.id, i18n.language]) | ||
|
||
// 当语言变化时,更新月之暗面的API地址 | ||
useEffect(() => { |
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.
这里应该不需要了,切换语言之后再回到这个界面,组件会重新加载
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note