Fix image rendering and unique key for pending message?

This commit is contained in:
sabaimran
2024-07-09 21:55:54 +05:30
parent c8c5d50b1a
commit e358723baa
2 changed files with 2 additions and 2 deletions

View File

@@ -417,7 +417,7 @@ export default function Chat() {
const contentType = chunk["content-type"];
if (contentType === "application/json") {
try {
if (chunk.image && chunk.detail) {
if (chunk.image || chunk.detail) {
let responseWithReference = handleImageResponse(chunk);
console.log("Image response", responseWithReference);
if (responseWithReference.response) currentMessage.rawResponse = responseWithReference.response;