mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 20:23:36 +00:00
- Refactor model handling to support both Claude and Cursor models across various components. - Introduce `stripProviderPrefix` utility for consistent model ID processing. - Update `CursorProvider` to utilize `isCursorModel` for model validation. - Implement model override functionality in GitHub issue validation and enhancement routes. - Add `useCursorStatusInit` hook to initialize Cursor CLI status on app startup. - Update UI components to reflect changes in model selection and validation processes. This update improves the flexibility of AI model usage and enhances user experience by allowing quick model overrides.
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
import { Brain, Zap, Scale, Cpu, Rocket, Sparkles } from 'lucide-react';
|
|
import type { ModelAlias, ThinkingLevel } from '@/store/app-store';
|
|
|
|
// Icon mapping for profiles
|
|
export const PROFILE_ICONS: Record<string, React.ComponentType<{ className?: string }>> = {
|
|
Brain,
|
|
Zap,
|
|
Scale,
|
|
Cpu,
|
|
Rocket,
|
|
Sparkles,
|
|
};
|
|
|
|
// Available icons for selection
|
|
export const ICON_OPTIONS = [
|
|
{ name: 'Brain', icon: Brain },
|
|
{ name: 'Zap', icon: Zap },
|
|
{ name: 'Scale', icon: Scale },
|
|
{ name: 'Cpu', icon: Cpu },
|
|
{ name: 'Rocket', icon: Rocket },
|
|
{ name: 'Sparkles', icon: Sparkles },
|
|
];
|
|
|
|
// Model options for the form
|
|
export const CLAUDE_MODELS: { id: ModelAlias; label: string }[] = [
|
|
{ id: 'haiku', label: 'Claude Haiku' },
|
|
{ id: 'sonnet', label: 'Claude Sonnet' },
|
|
{ id: 'opus', label: 'Claude Opus' },
|
|
];
|
|
|
|
export const THINKING_LEVELS: { id: ThinkingLevel; label: string }[] = [
|
|
{ id: 'none', label: 'None' },
|
|
{ id: 'low', label: 'Low' },
|
|
{ id: 'medium', label: 'Medium' },
|
|
{ id: 'high', label: 'High' },
|
|
{ id: 'ultrathink', label: 'Ultrathink' },
|
|
];
|