Skip to content

Commit

Permalink
🐛 fix gemini end stream
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceunx committed Apr 29, 2024
1 parent d83d593 commit dc68a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpt_server/routers/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ async def get_content(data, url):
yield json.dumps(send_data)
except Exception:
yield '{"choices":[{"index":0,"delta":{"content":"error from gemini"}}]}'
yield "[DONE]"
break
yield "[DONE]"


@router.post("/chat", status_code=200)
Expand Down

0 comments on commit dc68a1d

Please sign in to comment.