Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import g4f
|
3 |
#bQg91CNGoHslYB1gzVDII8hhg2hNFBcL15Ylvk5ThfQL9vM6LN0L09W82gLkCWd_RCw6xw
|
4 |
#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
|
5 |
-
|
6 |
|
7 |
# Automatic selection of provider
|
8 |
|
@@ -13,6 +13,7 @@ def chatbot_interaction(input_text):
|
|
13 |
print(input_text)
|
14 |
response = g4f.ChatCompletion.create(
|
15 |
model="gpt-3.5-turbo",
|
|
|
16 |
messages=[{"role": "user", "content": input_texxt}],
|
17 |
stream=False,
|
18 |
)
|
|
|
2 |
import g4f
|
3 |
#bQg91CNGoHslYB1gzVDII8hhg2hNFBcL15Ylvk5ThfQL9vM6LN0L09W82gLkCWd_RCw6xw
|
4 |
#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
|
5 |
+
# supported args
|
6 |
|
7 |
# Automatic selection of provider
|
8 |
|
|
|
13 |
print(input_text)
|
14 |
response = g4f.ChatCompletion.create(
|
15 |
model="gpt-3.5-turbo",
|
16 |
+
provider=g4f.Provider.ChatgptAi,
|
17 |
messages=[{"role": "user", "content": input_texxt}],
|
18 |
stream=False,
|
19 |
)
|