mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Fix to log the client app calling the chat API
- Remove unused subscribed variable from the chat API - Unexpectedly dropped client app logging when migrated API chat to do advanced streaming in july
This commit is contained in:
@@ -574,7 +574,6 @@ async def chat(
|
|||||||
chat_metadata: dict = {}
|
chat_metadata: dict = {}
|
||||||
connection_alive = True
|
connection_alive = True
|
||||||
user: KhojUser = request.user.object
|
user: KhojUser = request.user.object
|
||||||
subscribed: bool = has_required_scope(request, ["premium"])
|
|
||||||
event_delimiter = "␃🔚␗"
|
event_delimiter = "␃🔚␗"
|
||||||
q = unquote(q)
|
q = unquote(q)
|
||||||
nonlocal conversation_id
|
nonlocal conversation_id
|
||||||
@@ -641,7 +640,7 @@ async def chat(
|
|||||||
request=request,
|
request=request,
|
||||||
telemetry_type="api",
|
telemetry_type="api",
|
||||||
api="chat",
|
api="chat",
|
||||||
client=request.user.client_app,
|
client=common.client,
|
||||||
user_agent=request.headers.get("user-agent"),
|
user_agent=request.headers.get("user-agent"),
|
||||||
host=request.headers.get("host"),
|
host=request.headers.get("host"),
|
||||||
metadata=chat_metadata,
|
metadata=chat_metadata,
|
||||||
|
|||||||
Reference in New Issue
Block a user