more providers ( Yqcloud, Openai)

このコミットが含まれているのは:
abc 2023-05-17 00:01:24 +01:00
コミット f10d74eb6a
3個のファイルの変更1行の追加2行の削除

ファイルの表示

@ -37,7 +37,6 @@ g4f.Providers.Phind
g4f.Providers.Yqcloud
# usage:
response = g4f.ChatCompletion.create(..., provider=g4f.Providers.ProviderName)
```

ファイルの表示

@ -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 = [

ファイルの表示

@ -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)