An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
style: fix code formatting with Prettier
Yoshiki Miura435dae07604e
diff --git a/components/artifact/search-artifact-content.tsx b/components/artifact/search-artifact-content.tsxindex 4f850e2a..ee2f06a6 100644--- a/components/artifact/search-artifact-content.tsx+++ b/components/artifact/search-artifact-content.tsx@@ -6,7 +6,10 @@ import type { ToolPart } from '@/lib/types/ai'import { SearchResults } from '@/components/search-results'import { SearchResultsImageSection } from '@/components/search-results-image'import { Section, ToolArgsSection } from '@/components/section'-import { createVideoSearchResults,VideoSearchResults } from '@/components/video-search-results'+import {+ createVideoSearchResults,+ VideoSearchResults+} from '@/components/video-search-results'export function SearchArtifactContent({ tool }: { tool: ToolPart<'search'> }) {const searchResults: TypeSearchResults | undefined =diff --git a/components/search-section.tsx b/components/search-section.tsxindex 9bc3e7c7..22aa7323 100644--- a/components/search-section.tsx+++ b/components/search-section.tsx@@ -12,7 +12,10 @@ import { SearchSkeleton } from './default-skeleton'import { SearchResults } from './search-results'import { SearchResultsImageSection } from './search-results-image'import { Section, ToolArgsSection } from './section'-import { createVideoSearchResults,VideoSearchResults } from './video-search-results'+import {+ createVideoSearchResults,+ VideoSearchResults+} from './video-search-results'interface SearchSectionProps {tool: ToolPart<'search'>diff --git a/lib/tools/search/providers/brave.ts b/lib/tools/search/providers/brave.tsindex e1116d98..14a41feb 100644--- a/lib/tools/search/providers/brave.ts+++ b/lib/tools/search/providers/brave.ts@@ -52,10 +52,7 @@ export class BraveSearchProvider implements SearchProvider {private getImageThumbnailUrl(result: BraveImageResult): string {return (- result.thumbnail?.src ??- result.properties?.thumbnail ??- result.url ??- ''+ result.thumbnail?.src ?? result.properties?.thumbnail ?? result.url ?? '')}diff --git a/lib/utils/message-mapping.ts b/lib/utils/message-mapping.tsindex 7eeb9abd..2e19904b 100644--- a/lib/utils/message-mapping.ts+++ b/lib/utils/message-mapping.ts@@ -369,12 +369,9 @@ export function mapDBPartToUIMessagePart(// Special handling for tool parts that maintain their typeif (- [- 'search',- 'retrieve',- 'question',- 'relatedQuestions'- ].includes(toolName)+ ['search', 'retrieve', 'question', 'relatedQuestions'].includes(+ toolName+ )) {return {type: part.type as any,