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({
471471 spinner . start ( `Processing memory: ${ memoryNameWithoutExt } ` ) ;
472472 try {
473473 const memoryContent = await fs . readFile ( filePath , 'utf-8' ) ;
474- const memoryObject = JSON . parse ( memoryContent ) ;
474+ const memoryObject = JSON . parse ( memoryContent ) as MemoryI ;
475475
476476 if ( ! memoryObject ) {
477477 handleInvalidConfig ( { spinner, name : memoryName , type : 'memory' } ) ;
@@ -484,7 +484,7 @@ export async function deployMemory({
484484 let memoryDocs : MemoryDocumentI [ ] = [ ] ;
485485
486486 // Git sync memories
487- if ( memoryObject . config . useGitRepo ) {
487+ if ( memoryObject . config ? .useGitRepo ) {
488488 // Get names of files to deploy, i.e., changed or new files
489489 filesToDeploy = await handleGitSyncMemories ( {
490490 memoryName : memoryNameWithoutExt ,
@@ -522,7 +522,7 @@ export async function deployMemory({
522522 documents : memoryDocs ,
523523 account,
524524 overwrite,
525- isGitSync : memoryObject . config . useGitRepo
525+ isGitSync : memoryObject . config ? .useGitRepo
526526 } ) ;
527527 spinner . stop ( `Deployment finished memory: ${ memoryObject . name } ` ) ;
528528 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -26,5 +26,6 @@ export interface BaseAIConfig {
2626 memory : {
2727 useLocalEmbeddings : boolean ;
2828 } ;
29+ envFilePath : string ;
2930 // Other configuration options can be added here
3031}
You canβt perform that action at this time.
0 commit comments