mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Add telemetry to keep state of new agents being used
This commit is contained in:
@@ -178,10 +178,15 @@ async def create_chat_session(
|
||||
|
||||
response = {"conversation_id": conversation.id}
|
||||
|
||||
conversation_metadata = {
|
||||
"agent": agent_slug,
|
||||
}
|
||||
|
||||
update_telemetry_state(
|
||||
request=request,
|
||||
telemetry_type="api",
|
||||
api="create_chat_sessions",
|
||||
metadata=conversation_metadata,
|
||||
**common.__dict__,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user