File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
bot/engine/src/main/kotlin/engine/config Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ object RAGAnswerHandler : AbstractProactiveAnswerHandler {
8383 it.score
8484 )
8585 }.toMutableList(),
86+ // modifiedObservabilityInfo includes the public langfuse URL if filled.
8687 metadata = ActionMetadata (isGenAiRagAnswer = true , observabilityInfo = modifiedObservabilityInfo)
8788 )
8889 )
@@ -98,10 +99,8 @@ object RAGAnswerHandler : AbstractProactiveAnswerHandler {
9899 val config = botBus.botDefinition.observabilityConfiguration
99100 if (config?.enabled == true && config.setting is LangfuseObservabilitySetting <* >) {
100101 val setting = config.setting as LangfuseObservabilitySetting <* >
101- // Stockage dans une variable locale pour éviter le smart cast impossible sur une propriété déclarée dans un autre module
102102 val publicUrl = setting.publicUrl
103103 if (! publicUrl.isNullOrBlank()) {
104- // Remplace l'URL interne par l'URL publique configurée
105104 return info.copy(traceUrl = info.traceUrl.replace(setting.url, publicUrl))
106105 }
107106 }
You can’t perform that action at this time.
0 commit comments