Skip to content

Commit

Permalink
fix uuid namespace pass as string
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethKnudsen97 committed Oct 1, 2024
1 parent ce95ceb commit 590b86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/langchain/lib/src/embeddings/cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class EmbeddingsByteStoreEncoder
@override
String encodeKey(final String key) {
final keyHash = sha1.convert(utf8.encode(key)).toString();
return uuid.v5(Namespace.URL, keyHash);
return uuid.v5(Namespace.url.name, keyHash);
}
@override
Expand Down

0 comments on commit 590b86d

Please sign in to comment.