File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
import path from "node:path" ;
2
2
import { models } from "./models.ts" ;
3
- import { IAgentRuntime , ModelProviderName , ModelClass } from "./types.ts" ;
4
- // import fs from "fs";
5
- import { trimTokens } from "./generation.ts" ;
3
+ import { IAgentRuntime , ModelProviderName } from "./types.ts" ;
6
4
import settings from "./settings.ts" ;
7
5
import elizaLogger from "./logger.ts" ;
8
6
import { EmbeddingModel } from "fastembed" ;
@@ -110,7 +108,7 @@ export function getEmbeddingType(runtime: IAgentRuntime): "local" | "remote" {
110
108
return isLocal ? "local" : "remote" ;
111
109
}
112
110
113
- export function getEmbeddingZeroVector ( runtime : IAgentRuntime ) : number [ ] {
111
+ export function getEmbeddingZeroVector ( ) : number [ ] {
114
112
let embeddingDimension = 384 ; // Default BGE dimension
115
113
116
114
if ( settings . USE_OPENAI_EMBEDDING ?. toLowerCase ( ) === "true" ) {
Original file line number Diff line number Diff line change 1
- import settings from "./settings.ts" ;
2
-
3
1
class ElizaLogger {
4
2
constructor ( ) {
5
3
// Check if we're in Node.js environment
You can’t perform that action at this time.
0 commit comments