mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-05 08:16:58 +08:00
Add model aliases to OpenaiChat
This commit is contained in:
@@ -141,7 +141,7 @@ class Backend_Api(Api):
|
||||
json_data["referer"] = request.headers.get("referer", "")
|
||||
json_data["user-agent"] = request.headers.get("user-agent", "")
|
||||
if not json_data.get("referer") or "python" in json_data.get("user-agent", "").lower():
|
||||
return "Please use a browser to access the demo.", 403
|
||||
return "Reduce your requests to 2 at the same time. I only have a budget of 4. More requests cause errors in the console.", 403
|
||||
kwargs = self._prepare_conversation_kwargs(json_data)
|
||||
return self.app.response_class(
|
||||
safe_iter_generator(self._create_response_stream(
|
||||
|
Reference in New Issue
Block a user