Spaces:
Running
Running
Update bin_public/config/presets.py
Browse files- bin_public/config/presets.py +10 -5
bin_public/config/presets.py
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
# -*- coding:utf-8 -*-
|
3 |
title = """<h1 align="center">ChatGPT-dteam 🚀</h1>"""
|
4 |
-
|
5 |
BALANCE_API_URL="https://api.openai.com/dashboard/billing/credit_grants"
|
6 |
USAGE_API_URL="https://api.openai.com/dashboard/billing/usage"
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
10 |
HISTORY_DIR = "history"
|
11 |
-
TEMPLATES_DIR = "templates"
|
12 |
|
13 |
|
14 |
description = """<div align=center>
|
@@ -55,8 +56,10 @@ HIDE_MY_KEY = False # 如果你想在UI中隐藏你的 API 密钥,将此值设
|
|
55 |
|
56 |
WEBSEARCH_PTOMPT_TEMPLATE = """\
|
57 |
Web search results:
|
|
|
58 |
{web_results}
|
59 |
Current date: {current_date}
|
|
|
60 |
Instructions: Using the provided web search results, write a comprehensive reply to the given query. Make sure to cite results using [[number](URL)] notation after the reference. If the provided search results refer to multiple subjects with the same name, write separate answers for each subject.
|
61 |
Query: {query}
|
62 |
Reply in 中文"""
|
@@ -87,3 +90,5 @@ Given the new context, refine the original answer to better
|
|
87 |
Answer in the same language as the question, such as English, 中文, 日本語, Español, Français, or Deutsch.
|
88 |
If the context isn't useful, return the original answer.
|
89 |
"""
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
# -*- coding:utf-8 -*-
|
3 |
title = """<h1 align="center">ChatGPT-dteam 🚀</h1>"""
|
4 |
+
API_HOST = "api.openai.com"
|
5 |
BALANCE_API_URL="https://api.openai.com/dashboard/billing/credit_grants"
|
6 |
USAGE_API_URL="https://api.openai.com/dashboard/billing/usage"
|
7 |
+
COMPLETION_URL = "https://api.openai.com/v1/chat/completions"
|
8 |
+
Kelpy_Codos_Path = r"C:\Users\allen\Desktop\CKGSB_ChatGPT-main\bin_public\config\Kelpy-Codos.js"
|
9 |
+
customJS_Path = r"C:\Users\allen\Desktop\CKGSB_ChatGPT-main\bin_public\config\custom.js"
|
10 |
+
CSS_path = r"C:\Users\allen\Desktop\CKGSB_ChatGPT-main\bin_public\config\CustomCSS.css"
|
11 |
HISTORY_DIR = "history"
|
12 |
+
TEMPLATES_DIR = r"C:\Users\allen\Desktop\CKGSB_ChatGPT-main\templates"
|
13 |
|
14 |
|
15 |
description = """<div align=center>
|
|
|
56 |
|
57 |
WEBSEARCH_PTOMPT_TEMPLATE = """\
|
58 |
Web search results:
|
59 |
+
|
60 |
{web_results}
|
61 |
Current date: {current_date}
|
62 |
+
|
63 |
Instructions: Using the provided web search results, write a comprehensive reply to the given query. Make sure to cite results using [[number](URL)] notation after the reference. If the provided search results refer to multiple subjects with the same name, write separate answers for each subject.
|
64 |
Query: {query}
|
65 |
Reply in 中文"""
|
|
|
90 |
Answer in the same language as the question, such as English, 中文, 日本語, Español, Français, or Deutsch.
|
91 |
If the context isn't useful, return the original answer.
|
92 |
"""
|
93 |
+
|
94 |
+
"""
|