feat(mobile): ai summary language

This commit is contained in:
DIYgod 2025-03-11 20:59:55 +08:00
parent 6539b1b984
commit f229f9f89d
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View File

@ -44,7 +44,7 @@ export const AISummary: FC<{
return (
<Animated.View
layout={CurvedTransition}
className={cn("border-system-fill mx-2 rounded-lg border p-3", className)}
className={cn("border-system-fill mx-2 rounded-lg border p-4", className)}
>
<View className="flex-row items-center gap-2">
<Magic2CuteReIcon height={16} width={16} color={labelColor} />

View File

@ -103,8 +103,7 @@ class SummarySyncService {
state.generatingStatus[entryId] = SummaryGeneratingStatus.Pending
})
// TODO: Use the language of the entry
const language = "en"
const language = entry.settings?.translation
// Use Our AI to generate summary
const summary = await apiClient.ai.summary
.$get({