Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

feat: add AI model config and update Settings type

Luis Ortiz8ae639638aa8
diff --git a/src/core/capture/ai-models.ts b/src/core/capture/ai-models.ts
new file mode 100644
index 0000000..9058efb
--- /dev/null
+++ b/src/core/capture/ai-models.ts
@@ -0,0 +1,34 @@
+export interface AIModelOption {
+ id: string;
+ label: string;
+}
+
+export interface AIProviderConfig {
+ label: string;
+ defaultModel: string;
+ models: AIModelOption[];
+}
+
+export const AI_PROVIDERS: Record<string, AIProviderConfig> = {
+ openai: {
+ label: 'OpenAI',
+ defaultModel: 'gpt-4o-mini',
+ models: [
+ { id: 'gpt-4o-mini', label: 'GPT-4o Mini' },
+ { id: 'gpt-4.1-nano', label: 'GPT-4.1 Nano' },
+ { id: 'gpt-4.1-mini', label: 'GPT-4.1 Mini' },
+ { id: 'gpt-4o', label: 'GPT-4o' },
+ { id: 'gpt-4.1', label: 'GPT-4.1' },
+ ],
+ },
+ anthropic: {
+ label: 'Anthropic',
+ defaultModel: 'claude-3-5-haiku-20241022',
+ models: [
+ { id: 'claude-3-5-haiku-20241022', label: 'Claude 3.5 Haiku' },
+ { id: 'claude-sonnet-4-20250514', label: 'Claude Sonnet 4' },
+ ],
+ },
+};
+
+export type AIProviderKey = keyof typeof AI_PROVIDERS;
diff --git a/src/core/guides/types.ts b/src/core/guides/types.ts
index 27697a5..3a43876 100644
--- a/src/core/guides/types.ts
+++ b/src/core/guides/types.ts
@@ -40,6 +40,7 @@ export interface Screenshot {
export interface Settings {
aiApiKey: string;
aiProvider: 'openai' | 'anthropic';
+ aiModel: string;
}
export interface ElementMeta {