Skip to content

Commit

Permalink
Small code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aledipa committed May 17, 2024
1 parent d1cd8a2 commit 94b73a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/FreeGPT4_Server.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"Wewordle": g4f.Provider.Wewordle,
"You": g4f.Provider.You,
"Yqcloud": g4f.Provider.Yqcloud,
"Bard": g4f.Provider.Bard
"Bard": g4f.Provider.Bard,
"DuckDuckGo": g4f.Provider.DuckDuckGo
}

GENERIC_MODELS = ["gpt-3.5-turbo", "gpt-4"]
Expand Down Expand Up @@ -388,7 +389,6 @@ async def index() -> str:

proxy = None
if (args.enable_proxies):
# proxies = json.load(open(PROXIES_FILE))
# Extracts a proxy from the list
proxy = random.choice(proxies)
# Formats the proxy like https://user:password@host:port
Expand Down
3 changes: 1 addition & 2 deletions src/data/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
"keyword": "text",
"cookie_file": "data/cookies.json",
"system_prompt": "",
"enable_proxies": false,
"proxies": false
}
}

0 comments on commit 94b73a2

Please sign in to comment.