From 24c0b9c38c310e8f19cafc91fffe5a85ab2c9a9e Mon Sep 17 00:00:00 2001 From: shushengcoder <1937982680@qq.com> Date: Wed, 16 Oct 2024 14:49:58 +0800 Subject: [PATCH] fix chroma api rest api bug --- .../main/java/org/springframework/ai/chroma/ChromaApi.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/ChromaApi.java b/vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/ChromaApi.java index 9932b1fe897..e611f606d38 100644 --- a/vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/ChromaApi.java +++ b/vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/ChromaApi.java @@ -106,7 +106,7 @@ public ChromaApi withBasicAuthCredentials(String username, String password) { * @param name The name of the collection. * @param metadata Metadata associated with the collection. */ - public record Collection(String id, String name, Map metadata) { + public record Collection(String id, String name, Map metadata) { } /** @@ -115,7 +115,7 @@ public record Collection(String id, String name, Map metadata) { * @param name The name of the collection to create. * @param metadata Optional metadata to associate with the collection. */ - public record CreateCollectionRequest(String name, Map metadata) { + public record CreateCollectionRequest(String name, Map metadata) { public CreateCollectionRequest(String name) { this(name, new HashMap<>(Map.of("hnsw:space", "cosine"))); }