File size: 7,372 Bytes
eee3ce2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
ts
import { AIModelInfo, AIModel, AICategory } from '@/types'

/**
 * Maximum character limits for different purposes
 */
export const CHARACTER_LIMITS = {
  INPUT: 8000,
  WARNING: 2000,
  MINIMUM: 20,
  TOKEN_ESTIMATE_FACTOR: 4 // Approximate characters per token
} as const

/**
 * Animation durations in milliseconds
 */
export const ANIMATION_DURATIONS = {
  FAST: 150,
  NORMAL: 300,
  SLOW: 500,
  COPY_FEEDBACK: 2000
} as const

/**
 * Available AI models with their metadata
 */
export const AI_MODELS: AIModelInfo[] = [
  // LLM Models
  {
    id: 'gpt-5',
    name: 'GPT-5',
    category: 'llm',
    description: 'Neueste Version von OpenAIs GPT-Modell',
    maxTokens: 128000,
    supportsStreaming: true
  },
  {
    id: 'gpt-5.1',
    name: 'GPT-5.1',
    category: 'llm',
    description: 'Optimierte GPT-5 Variante mit verbesserter Reasoning-Fähigkeit',
    maxTokens: 128000,
    supportsStreaming: true
  },
  {
    id: 'claude-4.5-opus',
    name: 'Claude 4.5 Opus',
    category: 'llm',
    description: 'Anthropics leistungsstärkstes Modell für komplexe Reasoning-Aufgaben',
    maxTokens: 200000,
    supportsStreaming: true
  },
  {
    id: 'claude-4.5-sonnet',
    name: 'Claude 4.5 Sonnet',
    category: 'llm',
    description: 'Ausgewogenes Claude-Modell für vielseitige Anwendungen',
    maxTokens: 200000,
    supportsStreaming: true
  },
  {
    id: 'claude-4.5-haiku',
    name: 'Claude 4.5 Haiku',
    category: 'llm',
    description: 'Schnelles Claude-Modell für effiziente Aufgaben',
    maxTokens: 200000,
    supportsStreaming: true
  },
  {
    id: 'gemini-3-pro',
    name: 'Gemini 3 Pro',
    category: 'llm',
    description: 'Google DeepMinds fortschrittlichstes Multimodal-Modell',
    maxTokens: 1000000,
    supportsStreaming: true
  },
  {
    id: 'llama-3',
    name: 'Llama 3',
    category: 'llm',
    description: 'Metas Open-Source Large Language Model',
    maxTokens: 128000,
    supportsStreaming: true
  },
  {
    id: 'mistral-large',
    name: 'Mistral Large',
    category: 'llm',
    description: 'Mistral AIs leistungsstarkes europäisches LLM',
    maxTokens: 32000,
    supportsStreaming: true
  },
  {
    id: 'mixtral',
    name: 'Mixtral',
    category: 'llm',
    description: 'Mistral AIs Sparse Mixture of Experts Modell',
    maxTokens: 32000,
    supportsStreaming: true
  },
  {
    id: 'minimax2',
    name: 'MiniMax2',
    category: 'llm',
    description: 'MiniMax Chinas fortschrittliches LLM',
    maxTokens: 245000,
    supportsStreaming: true
  },
  {
    id: 'kimik2',
    name: 'KimiK2',
    category: 'llm',
    description: 'Moonshot AIs Long-Context LLM',
    maxTokens: 200000,
    supportsStreaming: true
  },
  {
    id: 'deepseek',
    name: 'DeepSeek',
    category: 'llm',
    description: 'Chinas Open-Source Alternative mit starken Coding-Fähigkeiten',
    maxTokens: 128000,
    supportsStreaming: true
  },
  {
    id: 'qwen3',
    name: 'Qwen3',
    category: 'llm',
    description: 'Alibaba Clouds Quantum Series LLM',
    maxTokens: 131072,
    supportsStreaming: true
  },

  // Development Tools
  {
    id: 'manus',
    name: 'MANUS',
    category: 'code',
    description: 'AI-gestützte Full-Stack-Entwicklung',
    maxTokens: 32000,
    supportsStreaming: true
  },
  {
    id: 'replit-agent',
    name: 'Replit Agent',
    category: 'code',
    description: 'Replit\'s AI-Assistent für Code-Entwicklung',
    maxTokens: 16000,
    supportsStreaming: true
  },
  {
    id: 'bolt-new',
    name: 'Bolt.new',
    category: 'code',
    description: 'StackBlitzs AI für schnelle Web-Entwicklung',
    maxTokens: 32000,
    supportsStreaming: true
  },
  {
    id: 'v0-dev',
    name: 'v0.dev',
    category: 'code',
    description: 'Verkels UI-Komponenten-Generator',
    maxTokens: 16000,
    supportsStreaming: true
  },
  {
    id: 'cursor-ai',
    name: 'Cursor AI',
    category: 'code',
    description: 'AI-fähiger Code-Editor mit In-Context-Wissen',
    maxTokens: 32000,
    supportsStreaming: true
  },
  {
    id: 'github-copilot',
    name: 'GitHub Copilot',
    category: 'code',
    description: 'GitHub & OpenAIs Code-Completion-Assistent',
    maxTokens: 16000,
    supportsStreaming: true
  },
  {
    id: 'google-antigravity',
    name: 'Google Antigravity',
    category: 'code',
    description: 'Google\'s experimenteller Code-Assistent',
    maxTokens: 32000,
    supportsStreaming: true
  },
  {
    id: 'kiro',
    name: 'Kiro',
    category: 'code',
    description: 'KI-basierte Code-Entwicklungsplattform',
    maxTokens: 16000,
    supportsStreaming: true
  },
  {
    id: 'minimax-agent',
    name: 'MiniMax Agent',
    category: 'code',
    description: 'MiniMax\'s Entwickler-Assistent',
    maxTokens: 32000,
    supportsStreaming: true
  },

  // Specialized Tools
  {
    id: 'base44',
    name: 'Base44',
    category: 'special',
    description: 'Spezialisiertes Tool für komplexe AI-Workflows',
    maxTokens: 32000,
    supportsStreaming: false
  },
  {
    id: 'midjourney',
    name: 'Midjourney',
    category: 'image',
    description: 'KI-Bildgenerator für künstlerische Bilder',
    maxTokens: 4000,
    supportsStreaming: false
  },
  {
    id: 'dall-e-3',
    name: 'DALL-E 3',
    category: 'image',
    description: 'OpenAIs fortschrittlicher Bildgenerator',
    maxTokens: 4000,
    supportsStreaming: false
  },
  {
    id: 'stable-diffusion',
    name: 'Stable Diffusion',
    category: 'image',
    description: 'Open-Source KI-Bildgenerator',
    maxTokens: 4000,
    supportsStreaming: false
  },
  {
    id: 'runwayml',
    name: 'RunwayML',
    category: 'image',
    description: 'KI-Plattform für kreative Inhalte und Videos',
    maxTokens: 4000,
    supportsStreaming: false
  }
]

/**
 * Category display names in German
 */
export const CATEGORY_NAMES: Record<AICategory, string> = {
  llm: 'LLM-Modelle',
  code: 'Entwicklungstools',
  image: 'Bildgeneratoren',
  special: 'Spezialisierte Tools'
} as const

/**
 * Category descriptions in German
 */
export const CATEGORY_DESCRIPTIONS: Record<AICategory, string> = {
  llm: 'Large Language Models für Konversation und Textgenerierung',
  code: 'AI-Tools für Code-Entwicklung und -Generierung',
  image: 'KI-Bildgeneratoren für visuelle Inhalte',
  special: 'Spezialisierte Tools für einzigartige Anwendungsfälle'
} as const

/**
 * Get models by category
 */
export function getModelsByCategory(category: AICategory): AIModelInfo[] {
  return AI_MODELS.filter(model => model.category === category)
}

/**
 * Find model by ID
 */
export function getModelById(id: AIModel): AIModelInfo | undefined {
  return AI_MODELS.find(model => model.id === id)
}

/**
 * Check if character count exceeds warning threshold
 */
export function getCharacterWarning(count: number): { type: 'warning' | 'error' | null, message: string | null } {
  if (count === 0) {
    return { type: null, message: null }
  }
  
  if (count < CHARACTER_LIMITS.MINIMUM) {
    return {
      type: 'warning',
      message: 'Prompt ist sehr kurz. Erwäge mehr Details hinzuzufügen für bessere Ergebnisse.'
    }
  }
  
  if (count > CHARACTER_LIMITS.WARNING) {
    return {
      type: 'warning',
      message: `Achtung: Sehr langer Prompt (${count} Zeichen) könnte Token-Limits einiger KIs überschreiten.`
    }
  }
  
  return { type: null, message: null }
}

</html>