Skip to content

Commit

Permalink
Update Chimera.py
Browse files Browse the repository at this point in the history
  • Loading branch information
neurogen-dev authored Jul 27, 2023
1 parent febf247 commit b7e5c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g4f/Provider/Providers/Chimera.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs):
)
if stream:
for chunk in response:
yield chunk.choices[0].delta.get("content", ""), end="", flush=True
yield chunk.choices[0].delta.get("content", "")
else:
yield response.choices[0]['message'].get("content", ""), end="", flush=True
yield response.choices[0]['message'].get("content", "")

except openai.error.APIError as e:
if e.http_status == 429:
Expand Down

0 comments on commit b7e5c57

Please sign in to comment.