diff --git a/vitrivr-engine-plugin-features/src/main/kotlin/org/vitrivr/engine/base/features/external/implementations/clip/CLIP.kt b/vitrivr-engine-plugin-features/src/main/kotlin/org/vitrivr/engine/base/features/external/implementations/clip/CLIP.kt index fe4b4455..cc31de8d 100644 --- a/vitrivr-engine-plugin-features/src/main/kotlin/org/vitrivr/engine/base/features/external/implementations/clip/CLIP.kt +++ b/vitrivr-engine-plugin-features/src/main/kotlin/org/vitrivr/engine/base/features/external/implementations/clip/CLIP.kt @@ -91,8 +91,8 @@ class CLIP : ExternalWithFloatVectorDescriptorAnalyser>() { * @return A list of CLIP feature descriptors. */ override fun analyse(content: ContentElement<*>, hostname: String): FloatVectorDescriptor = when (content) { - is ImageContent -> FloatVectorDescriptor(UUID.randomUUID(), null, httpRequest(content, "$hostname/extract/clip_image"), true) - is TextContent -> FloatVectorDescriptor(UUID.randomUUID(), null, httpRequest(content, "$hostname/extract/clip_text"), true) + is ImageContent -> FloatVectorDescriptor(UUID.randomUUID(), null, httpRequest(content, "${hostname.removeSuffix("/")}/extract/clip_image"), true) + is TextContent -> FloatVectorDescriptor(UUID.randomUUID(), null, httpRequest(content, "${hostname.removeSuffix("/")}/extract/clip_text"), true) else -> throw IllegalArgumentException("Content '$content' not supported") } } \ No newline at end of file diff --git a/vitrivr-engine-plugin-features/src/main/kotlin/org/vitrivr/engine/base/features/external/implementations/dino/DINO.kt b/vitrivr-engine-plugin-features/src/main/kotlin/org/vitrivr/engine/base/features/external/implementations/dino/DINO.kt index 242469f6..e9800e53 100644 --- a/vitrivr-engine-plugin-features/src/main/kotlin/org/vitrivr/engine/base/features/external/implementations/dino/DINO.kt +++ b/vitrivr-engine-plugin-features/src/main/kotlin/org/vitrivr/engine/base/features/external/implementations/dino/DINO.kt @@ -90,6 +90,6 @@ class DINO : ExternalWithFloatVectorDescriptorAnalyser() { * @return A list of CLIP feature descriptors. */ override fun analyse(content: ImageContent, hostname: String): FloatVectorDescriptor { - return FloatVectorDescriptor(UUID.randomUUID(), null, httpRequest(content, "$hostname/extract/dino"), true) + return FloatVectorDescriptor(UUID.randomUUID(), null, httpRequest(content, "${hostname.removeSuffix("/")}/extract/dino"), true) } } \ No newline at end of file