File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ export async function deployMemory({
471
471
spinner . start ( `Processing memory: ${ memoryNameWithoutExt } ` ) ;
472
472
try {
473
473
const memoryContent = await fs . readFile ( filePath , 'utf-8' ) ;
474
- const memoryObject = JSON . parse ( memoryContent ) ;
474
+ const memoryObject = JSON . parse ( memoryContent ) as MemoryI ;
475
475
476
476
if ( ! memoryObject ) {
477
477
handleInvalidConfig ( { spinner, name : memoryName , type : 'memory' } ) ;
@@ -484,7 +484,7 @@ export async function deployMemory({
484
484
let memoryDocs : MemoryDocumentI [ ] = [ ] ;
485
485
486
486
// Git sync memories
487
- if ( memoryObject . config . useGitRepo ) {
487
+ if ( memoryObject . config ? .useGitRepo ) {
488
488
// Get names of files to deploy, i.e., changed or new files
489
489
filesToDeploy = await handleGitSyncMemories ( {
490
490
memoryName : memoryNameWithoutExt ,
@@ -522,7 +522,7 @@ export async function deployMemory({
522
522
documents : memoryDocs ,
523
523
account,
524
524
overwrite,
525
- isGitSync : memoryObject . config . useGitRepo
525
+ isGitSync : memoryObject . config ? .useGitRepo
526
526
} ) ;
527
527
spinner . stop ( `Deployment finished memory: ${ memoryObject . name } ` ) ;
528
528
} catch ( error ) {
Original file line number Diff line number Diff line change @@ -26,5 +26,6 @@ export interface BaseAIConfig {
26
26
memory : {
27
27
useLocalEmbeddings : boolean ;
28
28
} ;
29
+ envFilePath : string ;
29
30
// Other configuration options can be added here
30
31
}
You canβt perform that action at this time.
0 commit comments