Fix: handle optional loggingConfig in getDefaultEmbeddingFunction initialization
This commit is contained in:
parent
22ccd5a162
commit
e7dcedae60
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ export class BrainyData<T = any> implements BrainyDataInterface<T> {
|
|||
this.embeddingFunction = config.embeddingFunction
|
||||
} else {
|
||||
this.embeddingFunction = getDefaultEmbeddingFunction({
|
||||
verbose: this.loggingConfig.verbose
|
||||
verbose: this.loggingConfig?.verbose
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue