diff --git a/components/shared/llm-view.tsx b/components/shared/llm-view.tsx index 6068c83f..f2212c07 100644 --- a/components/shared/llm-view.tsx +++ b/components/shared/llm-view.tsx @@ -39,6 +39,11 @@ export const LLMView = ({ : prompt?.function_call ? prompt?.function_call : ""; + + // will add once edit image wrapper has been added in sdks + // const url = prompt?.content?.url; + // const b64Json = prompt?.content?.b64_json; + // const revisedPrompt = prompt?.content?.revised_prompt; return (
{role} -
0 && - "underline decoration-red-600 decoration-[3px]" - )} - dangerouslySetInnerHTML={{ __html: safeStringify(content) }} - /> + {!url && !b64Json && ( +
0 && + "underline decoration-red-600 decoration-[3px]" + )} + dangerouslySetInnerHTML={{ __html: safeStringify(content) }} + /> + )} + {url && ( +
+ + View Image + + Generated Image + {revisedPrompt && ( +

{revisedPrompt}

+ )} +
+ )} + {b64Json && ( +
+ Generated Image + {revisedPrompt && ( +

{revisedPrompt}

+ )} +
+ )} {Evaluate && }
);