XingHe0127 commited on
Commit
30b1f78
1 Parent(s): b4b041b

Delete presets.py

Browse files
Files changed (1) hide show
  1. presets.py +0 -88
presets.py DELETED
@@ -1,88 +0,0 @@
1
- # -*- coding:utf-8 -*-
2
- title = """<h1 align="left" style="min-width:200px; margin-top:0;"></h1>"""
3
- description = """<div align="center" style="margin:16px 0">
4
- 此网页使用 OpenAI API
5
-
6
- Chatbot Mar 17 Version.
7
-
8
- </div>
9
- """
10
- customCSS = """
11
- #status_display {
12
- display: flex;
13
- min-height: 2.5em;
14
- align-items: flex-end;
15
- justify-content: flex-end;
16
- }
17
- #status_display p {
18
- font-size: .85em;
19
- font-family: monospace;
20
- color: var(--text-color-subdued) !important;
21
- }
22
- [class *= "message"] {
23
- border-radius: var(--radius-xl) !important;
24
- border: none;
25
- padding: var(--spacing-xl) !important;
26
- font-size: var(--text-md) !important;
27
- line-height: var(--line-md) !important;
28
- }
29
- [data-testid = "bot"] {
30
- max-width: 85%;
31
- border-bottom-left-radius: 0 !important;
32
- }
33
- [data-testid = "user"] {
34
- max-width: 85%;
35
- width: auto !important;
36
- border-bottom-right-radius: 0 !important;
37
- }
38
- code {
39
- display: inline;
40
- white-space: break-spaces;
41
- border-radius: 6px;
42
- margin: 0 2px 0 2px;
43
- padding: .2em .4em .1em .4em;
44
- background-color: rgba(175,184,193,0.2);
45
- }
46
- pre code {
47
- display: block;
48
- white-space: pre;
49
- background-color: hsla(0, 0%, 0%, 72%);
50
- border: solid 5px var(--color-border-primary) !important;
51
- border-radius: 10px;
52
- padding: 0 1.2rem 1.2rem;
53
- margin-top: 1em !important;
54
- color: #FFF;
55
- box-shadow: inset 0px 8px 16px hsla(0, 0%, 0%, .2)
56
- }
57
-
58
- * {
59
- transition: all 0.6s;
60
- }
61
- """
62
-
63
- summarize_prompt = "你是谁?我们刚才聊了什么?" # 总结对话时的 prompt
64
- MODELS = ["gpt-3.5-turbo", "gpt-3.5-turbo-0301", "gpt-4","gpt-4-0314", "gpt-4-32k", "gpt-4-32k-0314"] # 可选的模型
65
- websearch_prompt = """Web search results:
66
-
67
- {web_results}
68
- Current date: {current_date}
69
-
70
- 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.
71
- Query: {query}
72
- Reply in 中文"""
73
-
74
- # 错误信息
75
- standard_error_msg = "☹️发生了错误:" # 错误信息的标准前缀
76
- error_retrieve_prompt = "请检查网络连接,或者API-Key是否有效。" # 获取对话时发生错误
77
- connection_timeout_prompt = "连接超时,无法获取对话。" # 连接超时
78
- read_timeout_prompt = "读取超时,无法获取对话。" # 读取超时
79
- proxy_error_prompt = "代理错误,无法获取对话。" # 代理错误
80
- ssl_error_prompt = "SSL错误,无法获取对话。" # SSL 错误
81
- no_apikey_msg = "API key长度不是51位,请检查是否输入正确。" # API key 长度不足 51 位
82
-
83
- max_token_streaming = 3500 # 流式对话时的最大 token 数
84
- timeout_streaming = 20 # 流式对话时的超时时间
85
- max_token_all = 3500 # 非流式对话时的最大 token 数
86
- timeout_all = 200 # 非流式对话时的超时时间
87
- enable_streaming_option = True # 是否启用选择选择是否实时显示回答的勾选框
88
- HIDE_MY_KEY = False # 如果你想在UI中隐藏你的 API 密钥,将此值设置为 True