From f104a8eefe1cfdbb167868569104c7ca19693831 Mon Sep 17 00:00:00 2001 From: Yinnii Date: Fri, 4 Oct 2024 16:05:52 +0200 Subject: [PATCH] update callbackurl --- .../java/services/openAIService/OpenAIServiceController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openai-service/src/main/java/services/openAIService/OpenAIServiceController.java b/openai-service/src/main/java/services/openAIService/OpenAIServiceController.java index 0d1e963..a768dcd 100644 --- a/openai-service/src/main/java/services/openAIService/OpenAIServiceController.java +++ b/openai-service/src/main/java/services/openAIService/OpenAIServiceController.java @@ -554,7 +554,7 @@ public ResponseEntity biwibot(HttpServletRequest req, @RequestBody J newEvent.put("material", "None"); } if (body.containsKey("sbfmUrl")) { - final String sbfmUrl = body.getAsString("sbfmUrl"); + final String sbfmUrl = body.getAsString("sbfmUrl") + "/" + channel.split("-")[0] + "/" + channel; if (openAIservice.isActive.containsKey(orgaChannel)) { if(openAIservice.isActive.getOrDefault(orgaChannel, false) && !msg.startsWith("!")) { openAIservice.response.put("AIResponse", "Einen Moment bitte, ich verarbeite noch deine erste Nachricht.");