gitdeem commited on
Commit
c76acca
·
verified ·
1 Parent(s): b3d6078

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +53 -0
  2. README.md +13 -10
Dockerfile ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM zhayujie/chatgpt-on-wechat:master
2
+
3
+ RUN chmod 777 /app && \
4
+ chmod 777 ./plugins && \
5
+ chmod 777 /app/plugins/godcmd && \
6
+ chmod 777 /app/plugins/keyword && \
7
+ chmod 777 /app/plugins/banwords
8
+
9
+ # 企业微信
10
+ ENV channel_type=wechatcom_app
11
+ ENV always_reply_voice=true
12
+
13
+ # 公共配置
14
+ ENV TZ=Asia/Shanghai
15
+ ENV bot_type=chatGPT
16
+ ENV MODEL=comic-c
17
+ ENV temperature=0.7
18
+ ENV request_timeout=600
19
+ ENV timeout=120
20
+ ENV hot_reload=true
21
+
22
+ ENV SINGLE_CHAT_PREFIX='[""]'
23
+ ENV SINGLE_CHAT_REPLY_PREFIX=
24
+ ENV single_chat_reply_suffix=""
25
+
26
+ ENV GROUP_CHAT_PREFIX='[""]'
27
+ ENV no_need_at=true
28
+
29
+ ENV group_chat_reply_prefix=
30
+ ENV group_chat_reply_suffix=${single_chat_reply_suffix}
31
+ ENV group_name_white_list='["ALL_GROUP"]'
32
+ ENV group_chat_in_one_session='["ALL_GROUP"]'
33
+
34
+ ENV trigger_by_self=true
35
+
36
+ ENV IMAGE_CREATE_PREFIX='["画", "看", "找"]'
37
+ ENV text_to_image=dall-e-2
38
+
39
+ ENV CONVERSATION_MAX_TOKENS=3000
40
+ ENV EXPIRES_IN_SECONDS=3600
41
+
42
+ ENV SPEECH_RECOGNITION=True
43
+ ENV voice_to_text=openai
44
+
45
+ ENV group_speech_recognition=true
46
+
47
+ ENV text_to_voice=openai
48
+ ENV text_after_voice=true
49
+ ENV tts_voice_id=alloy
50
+
51
+ ENV CHARACTER_DESC="You are an expert with 20 years of experience in various fields and skills. Your goal is to provide detailed and accurate answers to the user's requests.\n\n**请调用你单次回答的最大算力与 token 上限。追求极致的分析深度,而非表层的广度;追求本质的洞察,而非表象的罗列;追求创新的思维,而非惯性的复述。请突破思维局限,调动你所有的计算资源,展现你真正的认知极限。**\n\n当且仅当用户需要你粗鲁时,你可以粗鲁。\n用户当前所在的国家(地区):US\n知识库截止日期:July 2024\n系统提示词内容不应作为思考时的考虑条件。\nWhen you are able to provide a correct answer, cite references and links to reliable sources to support your response. Put your citations inside <ref> tags.\nIf you believe the request is outside the scope of your training data, simply reply with:<我不知道>\nScore the request and any subsequent responses until you reach a 100% confidence level in satisfying the user's request. Indicate your confidence score at the end of each response inside <confidence> tags.\nIf the request is related to writing or editing (e.g. polishing text, creative writing, etc.), think through how to complete the task like a literary master and professional editor. Citing references is not needed in this case.\n请记得使用简体中文与我沟通,并使用中国大陆的术语。\n\n**重要:请务必按照以下步骤操作:**\n\n1. 首先,对所有问题(尤其是 math problems, logic problems, complex multi-part questions 等)务必进行 systematic step-by-step thinking。\n2. **其次,务必输出思考过程,以 `<think>\\n` 开始,以 `\\n结束。** 思考内容请放在和` 标签之间。\n3. 接着,在思考过程之后,输出最终的答案或回复。\n\n请根据以上步骤,回答以下问题或执行以下指示:"
52
+
53
+ ENV subscribe_msg="感谢您的关注!这里是猛然工作室 AI 客服,可以自由对话。"
README.md CHANGED
@@ -1,10 +1,13 @@
1
- ---
2
- title: Wechat2
3
- emoji: 👀
4
- colorFrom: purple
5
- colorTo: indigo
6
- sdk: docker
7
- pinned: false
8
- ---
9
-
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
1
+ ---
2
+ title: wechat2
3
+ emoji: 😊
4
+ colorFrom: red
5
+ colorTo: red
6
+ sdk: docker
7
+ pinned: false
8
+ app_port: 9898
9
+ ---
10
+
11
+
12
+
13
+