Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ class FastGPTChat:
|
|
28 |
"chatId": chat_id,
|
29 |
"stream": False,
|
30 |
"detail": True,
|
31 |
-
"model": "gpt-
|
32 |
"messages": [
|
33 |
{
|
34 |
"role": "user",
|
@@ -117,7 +117,7 @@ def create_chat_interface(api_key):
|
|
117 |
|
118 |
# 创建Gradio界面
|
119 |
with gr.Blocks(title="FastGPT Chat") as interface:
|
120 |
-
gr.Markdown("# FastGPT Chat Interface (Using GPT-
|
121 |
|
122 |
with gr.Row():
|
123 |
api_key_input = gr.Textbox(
|
|
|
28 |
"chatId": chat_id,
|
29 |
"stream": False,
|
30 |
"detail": True,
|
31 |
+
"model": "gpt-4o", # 指定使用 gpt-4 模型
|
32 |
"messages": [
|
33 |
{
|
34 |
"role": "user",
|
|
|
117 |
|
118 |
# 创建Gradio界面
|
119 |
with gr.Blocks(title="FastGPT Chat") as interface:
|
120 |
+
gr.Markdown("# FastGPT Chat Interface (Using GPT-4o)")
|
121 |
|
122 |
with gr.Row():
|
123 |
api_key_input = gr.Textbox(
|