フォーク元 g4f/gpt4free
more providers ( Yqcloud, Openai)
このコミットが含まれているのは:
コミット
f10d74eb6a
|
@ -37,7 +37,6 @@ g4f.Providers.Phind
|
||||||
g4f.Providers.Yqcloud
|
g4f.Providers.Yqcloud
|
||||||
|
|
||||||
# usage:
|
# usage:
|
||||||
|
|
||||||
response = g4f.ChatCompletion.create(..., provider=g4f.Providers.ProviderName)
|
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)
|
sha256 = NewType('sha_256_hash', str)
|
||||||
|
|
||||||
|
|
||||||
class MetaModels(type):
|
class MetaModels(type):
|
||||||
def __str__(cls):
|
def __str__(cls):
|
||||||
output: List = [
|
output: List = [
|
||||||
|
|
|
@ -10,7 +10,6 @@ from flask_cors import CORS
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
CORS(app)
|
CORS(app)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/chat/completions", methods=['POST'])
|
@app.route("/chat/completions", methods=['POST'])
|
||||||
def chat_completions():
|
def chat_completions():
|
||||||
streaming = request.json.get('stream', False)
|
streaming = request.json.get('stream', False)
|
||||||
|
|
読み込み中…
新しいイシューから参照