diff --git a/README.md b/README.md index 008e264..993019a 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,6 @@ g4f.Providers.Phind g4f.Providers.Yqcloud # usage: - response = g4f.ChatCompletion.create(..., provider=g4f.Providers.ProviderName) ``` diff --git a/g4f/typing.py b/g4f/typing.py index f642faf..61530b9 100644 --- a/g4f/typing.py +++ b/g4f/typing.py @@ -2,6 +2,7 @@ from typing import Dict, NewType, Union, Optional, List, get_type_hints sha256 = NewType('sha_256_hash', str) + class MetaModels(type): def __str__(cls): output: List = [ diff --git a/interference/app.py b/interference/app.py index 0548d3b..053fa3f 100644 --- a/interference/app.py +++ b/interference/app.py @@ -10,7 +10,6 @@ from flask_cors import CORS app = Flask(__name__) CORS(app) - @app.route("/chat/completions", methods=['POST']) def chat_completions(): streaming = request.json.get('stream', False)