Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

feat: include provider and model in assistant message metadata for cloud sync

Salman Qureshi577776804dcc
diff --git a/src/core/agent.ts b/src/core/agent.ts
index 4d829798..15af9cd9 100644
--- a/src/core/agent.ts
+++ b/src/core/agent.ts
@@ -2500,6 +2500,7 @@ export class Agent {
channelType: msg.channelType,
channelId: msg.channelId,
...(typeof msg.metadata?.requestId === 'string' ? { requestId: msg.metadata.requestId } : {}),
+ ...(usedProvider ? { provider: usedProvider.name, model: usedProvider.model } : {}),
},
});
if (msg.channelType !== 'internal' && msg.senderId !== 'system' && usedProvider) {