From 9dd11facc27681a9c1abf6f84f8851f28c7bd7f5 Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 15 Nov 2023 10:34:53 +0200 Subject: [PATCH] get opportunityUrl from embedding result --- src/xyz/didx/ai/AiHandler.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xyz/didx/ai/AiHandler.scala b/src/xyz/didx/ai/AiHandler.scala index 979d977..c1b10f1 100644 --- a/src/xyz/didx/ai/AiHandler.scala +++ b/src/xyz/didx/ai/AiHandler.scala @@ -95,7 +95,7 @@ object AiHandler { val id: String = topMatch.metadata("id") val title: String = topMatch.metadata("title") val organisation: String = topMatch.metadata("organisationName") - val url: String = s"https://app.yoma.world/opportunities/$id" + val url: String = topMatch.metadata("opportunityUrl") val response: String = s"You might be interested in: $title, by $organisation. Here's a link to the opportunity page: $url"