fossasia / susi_server

SUSI.AI server backend - the Artificial Intelligence server for personal assistants https://susi.ai
GNU Lesser General Public License v2.1
2.51k stars 1.08k forks source link

Add support to give image as a response #827

Closed batbrain7 closed 6 years ago

batbrain7 commented 6 years ago

Feature

Currently the image responses are not present, add support for the image responses from the server that can be displayed in the mobile clients. This could be implemented as a separate action like for eg : "Show images of giraffe", or an additional field for image in the existing actions

Would you like to work on the issue?

no, @AnupKumarPanwar or @akshatnitd may take this up.

hkedia321 commented 6 years ago

@batbrain7 @akshatnitd @AnupKumarPanwar I think image response do come from for queries like https://api.susi.ai/susi/chat.json?q=image%20of%20cat

{
      "language": "en",
      "type": "answer",
      "expression": "https://pixabay.com/get/ea31b30b2ffd003ed1584d05fb1d4790e076e7d610ac104497f8c871afedb2ba_640.jpg"
    }

We need to detect this kind of link on the client side and display the images accordingly. Is the issue still needed or can we close this issue? Thanks.

batbrain7 commented 6 years ago

@hkedia321 thanks for pointing this out

Akshat-Jain commented 6 years ago

@batbrain7 @hkedia321 As this issue has been solved already, hence I'm closing this. Thanks :-)