The invention provides a code
stream real-time rendering method and device,
electronic equipment and a readable storage medium, and relates to the technical field of
artificial intelligence such as large language models,
hypertext markup languages, streaming
processing and webpage generation. The method comprises the steps of obtaining a code
stream of a
hypertext markup language continuously output by a
large model and used for generating a target webpage; performing streaming
processing on the continuously acquired code
stream according to the following preset streaming analysis mechanism: in response to the detected complete script tag, extracting the script to be processed corresponding to the complete script tag to a preset script
management system; in response to the detected frame tag,
processing and displaying the content of the frame tag in a sub-page created for the frame tag; the real-time streaming result is presented as a real-time
web page rendering result corresponding to the portion of code received from the code stream. By applying the method, the rendering efficiency of obtaining the target webpage based on the code can be remarkably improved, and the
waiting time of a user is shortened.