Skip to content

Commit

Permalink
🐛 fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceunx committed May 2, 2024
1 parent 06bd400 commit 726ae6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpt_server/routers/cohere.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def get_content(data):
if 'text' not in tmp:
continue
if tmp["is_finished"]:
Singal = True
signal = True
yield "[DONE]"
else:
yield json.dumps({
Expand All @@ -45,7 +45,7 @@ async def get_content(data):
yield '{"choices":[{"index":0,"delta":{"content":"error from claude"}}]}'
yield "[DONE]"
break
if not Singal:
if not signal
yield "[DONE]"


Expand Down

0 comments on commit 726ae6b

Please sign in to comment.