feat(characters): support character-scoped conversations

This commit is contained in:
2026-07-17 11:42:31 +08:00
parent 93efcb6604
commit 2796010971
85 changed files with 1645 additions and 251 deletions
+3
View File
@@ -7,6 +7,7 @@ import { useCachedChatMediaUrl } from "@/lib/chat/use_cached_chat_media_url";
import styles from "./voice-bubble.module.css";
export interface VoiceBubbleProps {
characterId: string;
messageId?: string;
audioUrl?: string | null;
isFromAI: boolean;
@@ -17,6 +18,7 @@ export interface VoiceBubbleProps {
}
export function VoiceBubble({
characterId,
messageId,
audioUrl,
isFromAI,
@@ -31,6 +33,7 @@ export function VoiceBubble({
const hasAudio = audioUrl != null && audioUrl.length > 0;
const { mediaUrl, isUsingCachedMedia, reportMediaError } =
useCachedChatMediaUrl({
characterId,
messageId,
remoteUrl: audioUrl,
kind: "audio",