mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
fix interface issues
This commit is contained in:
parent
49076e3cf6
commit
5b3dca88d9
@ -9,7 +9,7 @@ import type { EmbeddingModelInfo } from '../interfaces/embedding_interfaces.js';
|
|||||||
export interface EmbeddingConfig {
|
export interface EmbeddingConfig {
|
||||||
model: string;
|
model: string;
|
||||||
dimension: number;
|
dimension: number;
|
||||||
type: string;
|
type: 'float32' | 'float64';
|
||||||
apiKey?: string;
|
apiKey?: string;
|
||||||
baseUrl?: string;
|
baseUrl?: string;
|
||||||
batchSize?: number;
|
batchSize?: number;
|
||||||
@ -23,7 +23,7 @@ export interface EmbeddingConfig {
|
|||||||
export abstract class BaseEmbeddingProvider {
|
export abstract class BaseEmbeddingProvider {
|
||||||
protected model: string;
|
protected model: string;
|
||||||
protected dimension: number;
|
protected dimension: number;
|
||||||
protected type: string;
|
protected type: 'float32' | 'float64';
|
||||||
protected maxBatchSize: number = 100;
|
protected maxBatchSize: number = 100;
|
||||||
protected apiKey?: string;
|
protected apiKey?: string;
|
||||||
protected baseUrl: string;
|
protected baseUrl: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user