mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-17 18:17:10 +00:00
Fix construction method for public share conversation URL
This commit is contained in:
parent
14c9bea663
commit
f6aaecb04f
1 changed files with 3 additions and 3 deletions
|
@ -261,6 +261,8 @@ def duplicate_chat_history_public_conversation(
|
|||
|
||||
public_conversation_url = PublicConversationAdapters.get_public_conversation_url(public_conversation)
|
||||
|
||||
domain = request.headers.get("host")
|
||||
|
||||
update_telemetry_state(
|
||||
request=request,
|
||||
telemetry_type="api",
|
||||
|
@ -268,9 +270,7 @@ def duplicate_chat_history_public_conversation(
|
|||
**common.__dict__,
|
||||
)
|
||||
|
||||
return Response(
|
||||
status_code=200, content=json.dumps({"status": "ok", "url": f"{request.client.host}{public_conversation_url}"})
|
||||
)
|
||||
return Response(status_code=200, content=json.dumps({"status": "ok", "url": f"{domain}{public_conversation_url}"}))
|
||||
|
||||
|
||||
@api_chat.get("/sessions")
|
||||
|
|
Loading…
Reference in a new issue