chore: replace chat in web app (#2373)

This commit is contained in:
zxhlyh
2024-02-04 16:10:46 +08:00
committed by GitHub
parent 3f0c515355
commit 51d359268e
49 changed files with 2100 additions and 92 deletions

View File

@@ -11,11 +11,11 @@ export type ConversationItem = {
export type SiteInfo = {
title: string
icon: string
icon_background: string
description: string
default_language: Locale
prompt_public: boolean
icon?: string
icon_background?: string
description?: string
default_language?: Locale
prompt_public?: boolean
copyright?: string
privacy_policy?: string
}
@@ -23,3 +23,18 @@ export type SiteInfo = {
export type AppMeta = {
tool_icons: Record<string, string>
}
export type AppData = {
app_id: string
can_replace_logo?: boolean
custom_config?: Record<string, any>
enable_site?: boolean
end_user_id?: string
site: SiteInfo
}
export type AppConversationData = {
data: ConversationItem[]
has_more: boolean
limit: number
}