mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-20 21:18:13 +02:00
- Introduced a new endpoint to check the existence of a global LLM configuration file. - Updated the frontend to utilize this status, affecting onboarding flow and user experience. - Added necessary atoms and types for managing global LLM config status in the application state. - Refactored navigation to ensure proper routing based on the global config status.
23 lines
612 B
TypeScript
23 lines
612 B
TypeScript
"use client";
|
|
|
|
import { ImageModelSelector } from "./image-model-selector";
|
|
import { ModelSelector } from "./model-selector";
|
|
|
|
interface ChatHeaderProps {
|
|
searchSpaceId: number;
|
|
className?: string;
|
|
onChatModelSelected?: () => void;
|
|
}
|
|
|
|
export function ChatHeader({ searchSpaceId, className, onChatModelSelected }: ChatHeaderProps) {
|
|
return (
|
|
<div className="flex items-center gap-2">
|
|
<ModelSelector
|
|
searchSpaceId={searchSpaceId}
|
|
className={className}
|
|
onChatModelSelected={onChatModelSelected}
|
|
/>
|
|
<ImageModelSelector searchSpaceId={searchSpaceId} className={className} />
|
|
</div>
|
|
);
|
|
}
|