mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 21:29:12 +00:00
Add telemetry for image generation conversation command
This commit is contained in:
@@ -714,6 +714,13 @@ async def chat(
|
|||||||
status_code=200,
|
status_code=200,
|
||||||
)
|
)
|
||||||
elif conversation_command == ConversationCommand.Image:
|
elif conversation_command == ConversationCommand.Image:
|
||||||
|
update_telemetry_state(
|
||||||
|
request=request,
|
||||||
|
telemetry_type="api",
|
||||||
|
api="chat",
|
||||||
|
metadata={"conversation_command": conversation_command.value},
|
||||||
|
**common.__dict__,
|
||||||
|
)
|
||||||
image, status_code = await text_to_image(q)
|
image, status_code = await text_to_image(q)
|
||||||
if image is None:
|
if image is None:
|
||||||
content_obj = {
|
content_obj = {
|
||||||
|
|||||||
Reference in New Issue
Block a user