Skip to content

Bug creating embeddings with { cache: false } #5

Description

@nataliapc

In the line:

let embedding = await this.cache.get(input, this.model);

But it fails when cache is null.

Possible quick fix:

let embedding = this.cache ? await this.cache.get(input, this.model) : null;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions