TheSmallHanCat commited on
Commit
cc54647
·
1 Parent(s): 36cbcc0

fix:修复图片输出格式

Browse files
Files changed (1) hide show
  1. src/services/generation_handler.py +1 -1
src/services/generation_handler.py CHANGED
@@ -448,7 +448,7 @@ class GenerationHandler:
448
  # 返回结果
449
  if stream:
450
  yield self._create_stream_chunk(
451
- f"<img src='{local_url}' style='max-width:100%' />",
452
  finish_reason="stop"
453
  )
454
  else:
 
448
  # 返回结果
449
  if stream:
450
  yield self._create_stream_chunk(
451
+ f"![Generated Image]({local_url})",
452
  finish_reason="stop"
453
  )
454
  else: