Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Update API Provider: Wewordle
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-victor committed Aug 3, 2023
1 parent 555eebe commit 8ac1ddc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion g4f/Provider/Providers/Wewordle.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs):
if response.status_code == 200:
_json = response.json()
if 'message' in _json:
yield _json['message']['content']
message_content = _json['message']['content']
message_content = message_content.replace('**assistant:** ', '')
yield message_content
else:
print(f"Error Occurred::{response.status_code}")
return None
Expand Down
2 changes: 1 addition & 1 deletion g4f/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class model:
class gpt_35_turbo:
name: str = 'gpt-3.5-turbo'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.AiService
best_provider: Provider.Provider = Provider.Wewordle

class gpt_35_turbo_0613:
name: str = 'gpt-3.5-turbo-0613'
Expand Down

0 comments on commit 8ac1ddc

Please sign in to comment.