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
@@ -12,6 +12,7 @@ import {
import { useCachedChatMediaUrl } from "@/lib/chat/use_cached_chat_media_url";
export interface ChatMediaImageProps {
characterId: string;
messageId?: string;
remoteUrl: string;
alt?: string;
@@ -28,6 +29,7 @@ export interface ChatMediaImageProps {
}
export function ChatMediaImage({
characterId,
messageId,
remoteUrl,
alt = "",
@@ -45,6 +47,7 @@ export function ChatMediaImage({
const [errorSrc, setErrorSrc] = useState<string | null>(null);
const { mediaUrl, isUsingCachedMedia, reportMediaError } =
useCachedChatMediaUrl({
characterId,
messageId,
remoteUrl,
kind: "image",