Niansuh commited on
Commit
ee69af4
·
verified ·
1 Parent(s): f8a28d1

Update api/utils.py

Browse files
Files changed (1) hide show
  1. api/utils.py +1 -1
api/utils.py CHANGED
@@ -87,7 +87,7 @@ async def process_streaming_response(request: ChatRequest):
87
  content = msg.content
88
  if isinstance(content, list) and len(content) == 2:
89
  # Handle image content
90
- content = f"FILE:BB\n$#$\n\n$#$\n{content[0]['text']}"
91
  if role and content:
92
  formatted_prompt += f"{role}: {content}\n"
93
 
 
87
  content = msg.content
88
  if isinstance(content, list) and len(content) == 2:
89
  # Handle image content
90
+ content = f"FILE:BB\n$#$\n\n$#$\n{msg.content[0]['text']}"
91
  if role and content:
92
  formatted_prompt += f"{role}: {content}\n"
93