Remove unnecessary dynamic imports

This commit is contained in:
Alex Gleason committed 2025-12-24 19:13:30 -06:00
1 parent bc0eec3839
commit d2fd29ed86
2 files changed
+13 -12

No files matched your search

+3 -2
View File
@@ -1,4 +1,5 @@
import OpenAI from 'openai';
import type { Decimal } from 'decimal.js';
import type { JSRuntimeFS } from './JSRuntime';
import { DotAI } from './DotAI';
import { parseProviderModel } from './parseProviderModel';
@@ -66,7 +67,7 @@ export class SessionManager {
private getSettings: () => { providers: AIProvider[]; imageModel?: string };
private getConfig: () => AppConfig;
private getDefaultConfig: () => AppConfig;
private getProviderModels?: () => Array<{ id: string; provider: string; contextLength?: number; pricing?: { prompt: import('decimal.js').Decimal; completion: import('decimal.js').Decimal } }>;
private getProviderModels?: () => Array<{ id: string; provider: string; contextLength?: number; pricing?: { prompt: Decimal; completion: Decimal } }>;
private getCurrentUser?: () => { user?: NUser; metadata?: NostrMetadata };
constructor(
@@ -75,7 +76,7 @@ export class SessionManager {
getSettings: () => { providers: AIProvider[]; imageModel?: string },
getConfig: () => AppConfig,
getDefaultConfig: () => AppConfig,
getProviderModels?: () => Array<{ id: string; provider: string; contextLength?: number; pricing?: { prompt: import('decimal.js').Decimal; completion: import('decimal.js').Decimal } }>,
getProviderModels?: () => Array<{ id: string; provider: string; contextLength?: number; pricing?: { prompt: Decimal; completion: Decimal } }>,
getCurrentUser?: () => { user?: NUser; metadata?: NostrMetadata },
) {
this.fs = fs;