Can i returning content with image_url for OpenAIStream?

I have an API to run commands used for chat applications like ChatGPT, but can I return the content and image_url. So it can be used in OpenAIStream? Or maybe I can modify it so that onCompletion doesn’t just show the content?

const stream = OpenAIStream(res, {
    async onCompletion(completion) {
      const title = json.messages[0].content.substring(0, 100);
      const id = json.id;
      const createdAt = Date.now();
      const path = `/chat/${id}`;
      const payload = {
        id,
        title,
        createdAt,
        path,
        messages: [
          ...messages,
          {
            content: completion,
            role: "assistant",
          },
        ],
      };
    },
  });