Update api/utils.py
Browse files- 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 |
|