From f10d74eb6a7f805bc5a39dfd66d06e180c90396e Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Wed, 17 May 2023 00:01:24 +0100 Subject: [PATCH] more providers ( Yqcloud, Openai) --- README.md | 1 - g4f/typing.py | 1 + interference/app.py | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) 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)