Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ai): fix AI tools lexical client auth (#3742)

teo3d538ba85e52
diff --git a/rust/cloud-storage/ai_tools/src/build_context.rs b/rust/cloud-storage/ai_tools/src/build_context.rs
index b0d98242f9..6449d10877 100644
--- a/rust/cloud-storage/ai_tools/src/build_context.rs
+++ b/rust/cloud-storage/ai_tools/src/build_context.rs
@@ -143,7 +143,10 @@ pub async fn build_tool_service_context_from_env(
let email_ext_client = Arc::new(EmailServiceClientExternal::new(
env.email_service_url.to_string(),
));
- let lexical_client = LexicalClient::new(sync_service_auth_key, lexical_service_url.to_string());
+ let lexical_client = LexicalClient::new(
+ env.document_storage_service_auth_key.to_string(),
+ lexical_service_url.to_string(),
+ );
let frecency_storage = FrecencyPgStorage::new(pool.clone());
let frecency_service = FrecencyQueryServiceImpl::new(frecency_storage.clone());