From 513b0f2f9c19fc8d61446d2bbd334fd76b02389c Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Fri, 20 Feb 2026 15:42:59 +0000 Subject: [PATCH] feat: build assistant from local source in docker-compose, add Langfuse vars --- app/config/variables.php | 27 +++++++++++++++++++++++++++ docker-compose.yml | 9 +++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/app/config/variables.php b/app/config/variables.php index 3363a03566..22db9ac01a 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -1387,6 +1387,33 @@ return [ 'required' => false, 'question' => '', 'filter' => '' + ], + [ + 'name' => '_APP_ASSISTANT_LANGFUSE_PUBLIC_KEY', + 'description' => 'Langfuse public key for assistant observability tracing. Optional.', + 'introduction' => '1.7.0', + 'default' => '', + 'required' => false, + 'question' => '', + 'filter' => '' + ], + [ + 'name' => '_APP_ASSISTANT_LANGFUSE_SECRET_KEY', + 'description' => 'Langfuse secret key for assistant observability tracing. Optional.', + 'introduction' => '1.7.0', + 'default' => '', + 'required' => false, + 'question' => '', + 'filter' => '' + ], + [ + 'name' => '_APP_ASSISTANT_LANGFUSE_HOST', + 'description' => 'Langfuse host URL for assistant observability tracing. Optional.', + 'introduction' => '1.7.0', + 'default' => 'https://cloud.langfuse.com', + 'required' => false, + 'question' => '', + 'filter' => '' ] ] ] diff --git a/docker-compose.yml b/docker-compose.yml index 0b7f164129..3c6ee9b1a6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1147,13 +1147,18 @@ services: appwrite-assistant: container_name: appwrite-assistant - image: appwrite/assistant:0.8.4 + build: + context: ../assistant + volumes: + - ../assistant/sources:/usr/src/app/sources networks: - appwrite environment: - - _APP_ASSISTANT_HOST - _APP_ASSISTANT_ANTHROPIC_API_KEY - _APP_ASSISTANT_OPENAI_API_KEY + - _APP_ASSISTANT_LANGFUSE_PUBLIC_KEY + - _APP_ASSISTANT_LANGFUSE_SECRET_KEY + - _APP_ASSISTANT_LANGFUSE_HOST appwrite-browser: container_name: appwrite-browser