fix interface issues

This commit is contained in:
perf3ct 2025-04-01 20:55:58 +00:00
parent 49076e3cf6
commit 5b3dca88d9
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232

View File

@ -9,7 +9,7 @@ import type { EmbeddingModelInfo } from '../interfaces/embedding_interfaces.js';
export interface EmbeddingConfig {
model: string;
dimension: number;
type: string;
type: 'float32' | 'float64';
apiKey?: string;
baseUrl?: string;
batchSize?: number;
@ -23,7 +23,7 @@ export interface EmbeddingConfig {
export abstract class BaseEmbeddingProvider {
protected model: string;
protected dimension: number;
protected type: string;
protected type: 'float32' | 'float64';
protected maxBatchSize: number = 100;
protected apiKey?: string;
protected baseUrl: string;