mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Add telemetry for image generation conversation command
This commit is contained in:
parent
e9ea0195b0
commit
7cb64cb2f9
1 changed files with 7 additions and 0 deletions
|
@ -714,6 +714,13 @@ async def chat(
|
|||
status_code=200,
|
||||
)
|
||||
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)
|
||||
if image is None:
|
||||
content_obj = {
|
||||
|
|
Loading…
Add table
Reference in a new issue