Skip to content
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

fix: 修复默认角色 oss 链接失效,添加 alert 提示 #64

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/constants/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export const DEFAULT_VIDOL_AGENT: Agent = {
greeting: `哈喽,亲爱的主人!我是你的私人助理 ${OFFICIAL_ROLE_NAME},愉快地为你服务!有什么我可以帮你的吗?`,
homepage: 'https://github.com/lobehub/lobe-vidol',
meta: {
avatar: 'https://registry.npmmirror.com/@v-idol/vidol-agent-sample-a/1.0.0/files/avatar.jpg',
avatar: 'https://r2.vidol.chat/agents/vidol-agent-sample-a/avatar.jpg',
category: CategoryEnum.VROID,
cover: 'https://registry.npmmirror.com/@v-idol/vidol-agent-sample-a/1.0.0/files/cover.jpg',
cover: 'https://r2.vidol.chat/agents/vidol-agent-sample-a/cover.jpg',
description: `${OFFICIAL_ROLE_NAME} 是 Vidol 的默认角色,是你的专属私人助理`,
gender: GenderEnum.FEMALE,
model: 'https://registry.npmmirror.com/@v-idol/vidol-agent-sample-a/1.0.0/files/model.vrm',
model: 'https://r2.vidol.chat/agents/vidol-agent-sample-a/model.vrm',
name: OFFICIAL_ROLE_NAME,
readme:
"AvatarSample_Aは、VRoid Studioに付属されているサンプルモデルの1つです。\r\n良識の範囲内で、本モデルに設定されているVRoid Hubの利用条件に沿って利用することができます。\r\nVRoid Hub連携アプリや、外部サービス等でぜひご活用ください。\r\nなお、本モデルはCC0ライセンスではありません、著作権は放棄はしておりませんので予めご了承ください。\r\n本モデルの利用条件は、以下ヘルプ記事をご覧ください。\r\nvroid.pixiv.help/hc/ja/articles/4402394424089\r\n\r\nAvatarSample_A is one of the sample models included in VRoid Studio.\r\nIt can be used in accordance with its VRoid Hub conditions of use, within reason.\r\nFeel free to use this model in applications linked to VRoid Hub and on external services.\r\nPlease note that this model is not under the CC0 license and its copyright has not been waived.\r\nTo learn more about this model's conditions of use, consult the following Help article.\r\nvroid.pixiv.help/hc/en-us/articles/4402394424089",
Expand Down
1 change: 1 addition & 0 deletions src/features/MarketInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const Header = () => {

actions.push(
<Button
key={'subscribe'}
onClick={() => {
if (isSubscribed) {
unsubscribe(currentAgentItem.agentId);
Expand Down
8 changes: 7 additions & 1 deletion src/layout/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { Header as LobeHeader, Logo, TabsNav } from '@lobehub/ui';
import { Space, Tag, Tooltip } from 'antd';
import { Alert, Space, Tag, Tooltip } from 'antd';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import { memo } from 'react';
Expand All @@ -22,6 +22,12 @@ const Header = (props: Props) => {
return (
<LobeHeader
actions={[
<Alert
message="近期由于 OSS 服务商限制,部分资源可能无法加载,可以从发现页重新订阅角色与舞蹈,造成的不便敬请谅解"
key={'alert'}
banner
closable
/>,
<Github key="github" />,
<ThemeMode key={'theme'} />,
<Discord key={'discord'} />,
Expand Down
2 changes: 1 addition & 1 deletion src/store/session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export const createSessonStore: StateCreator<SessionStore, [['zustand/devtools',
type: 'ADD_MESSAGE',
});

await fetchAIResponse(currentChats, assistantId);
fetchAIResponse(currentChats, assistantId);
},

setMessageInput: (messageInput) => {
Expand Down
Loading