Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Update message reply functionality to use common message to enable republication and remove the other functions #270

Open
wants to merge 439 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
439 commits
Select commit Hold shift + click to select a range
ec0467d
feat: support custom api domain for reverse proxy
Leizhenpeng Mar 10, 2023
e7dfe02
Merge pull request #76 from Leizhenpeng/feat_custom_domain_name
Leizhenpeng Mar 10, 2023
1487e21
feat: support http proxy
Leizhenpeng Mar 10, 2023
fefea3b
feat: if no available API, revive one randomly
Leizhenpeng Mar 10, 2023
a72b1b4
Merge pull request #77 from Leizhenpeng/feat_support_proxy
Leizhenpeng Mar 10, 2023
82a8aec
Merge branch 'feat_support_proxy'
Leizhenpeng Mar 10, 2023
ca9ae75
Merge branch 'master' into https
aaakoako Mar 10, 2023
335ebfc
解决cert.leaf :*crypto/x509.certificate nil时产生的空指针报错
aaakoako Mar 10, 2023
0edea5d
chore: update readme
Leizhenpeng Mar 10, 2023
1e6cc73
Merge pull request #78 from aaakoako/https
Leizhenpeng Mar 10, 2023
390d1ed
doc: update funding wechat
Leizhenpeng Mar 11, 2023
75cdf2b
doc: add feat plan
Leizhenpeng Mar 11, 2023
57cf70d
fix: permission denied in entrypoint.sh script
Leizhenpeng Mar 11, 2023
18fc46a
Merge pull request #82 from Leizhenpeng/fix_docker_entrypoint
Leizhenpeng Mar 11, 2023
8ad8e5b
doc
Leizhenpeng Mar 11, 2023
0a6e620
feat: add support voice
Leizhenpeng Mar 11, 2023
b4a3709
doc: update voice
Leizhenpeng Mar 11, 2023
0fb55ae
refactor: remove unnecessary print statements
Leizhenpeng Mar 11, 2023
03e009b
feat: add error msg
Leizhenpeng Mar 11, 2023
524cfc6
feat: only support voice in p2p
Leizhenpeng Mar 11, 2023
59b0ebd
doc: update readme
Leizhenpeng Mar 11, 2023
612fcc8
Merge pull request #83 from Leizhenpeng/feat_support_voice
Leizhenpeng Mar 11, 2023
f139210
feat: add test for audio api
Leizhenpeng Mar 12, 2023
a3988b4
feat: add image variation api
Leizhenpeng Mar 12, 2023
8b392f8
refactor: clean code for part:judgeMsgType
Leizhenpeng Mar 12, 2023
eed1e33
feat: receive pictures automatically tip switches picture modes
Leizhenpeng Mar 12, 2023
959366a
feat: support png file variation
Leizhenpeng Mar 12, 2023
b743718
chore: remove unnecessary print statements
Leizhenpeng Mar 12, 2023
a74efe1
feat: modify picture display to compact mode
Leizhenpeng Mar 12, 2023
3e0bbd4
chore: tidy go mod
Leizhenpeng Mar 12, 2023
a262504
doc: update readme
Leizhenpeng Mar 12, 2023
6709c77
chore: update help menu
Leizhenpeng Mar 12, 2023
0069ff1
dod: update readme.md
Leizhenpeng Mar 12, 2023
9875b6e
Merge pull request #87 from Leizhenpeng/feat_pic_varity
Leizhenpeng Mar 12, 2023
8781eaf
fix: invalid picture resolution setting
Leizhenpeng Mar 12, 2023
7860112
Merge pull request #88 from Leizhenpeng/fix_pic_resolution
Leizhenpeng Mar 12, 2023
f0a2945
doc: update readme.md
Leizhenpeng Mar 14, 2023
84efe69
doc: update readme.md
Leizhenpeng Mar 14, 2023
d4fd3dc
docs: add deployment guideline for Railway platform
chen622 Mar 14, 2023
101a0d5
doc: update image url
Leizhenpeng Mar 14, 2023
e8dcb81
Merge branch 'master' of github.com:chen622/feishu-chatgpt into chen6…
Leizhenpeng Mar 14, 2023
845e3a7
Merge branch 'chen622-master'
Leizhenpeng Mar 14, 2023
b700730
chore: clean image in doc
Leizhenpeng Mar 14, 2023
a2f0c77
Merge remote-tracking branch 'origin/master'
Leizhenpeng Mar 14, 2023
9a64d20
feat: 增加语音识别结果回复
trevorwang Mar 17, 2023
add8178
fixup! feat: 增加语音识别结果回复
trevorwang Mar 17, 2023
66bb8c0
Merge pull request #101 from trevorwang/feat/reply-transcription-text
Leizhenpeng Mar 17, 2023
2c73b3f
add docker compose deploy
yokaimeow Mar 22, 2023
06299ef
Merge branch 'yokaimeow-add-docker-compose'
Leizhenpeng Mar 22, 2023
8e1d1bb
chore: optimise docker-compose instruction
Leizhenpeng Mar 22, 2023
2a9ca77
chore: fix Dockerfile for ARM arch
csuzhangxc Mar 25, 2023
60fe848
Merge pull request #121 from csuzhangxc/fix-dockerfile-arm
Leizhenpeng Mar 25, 2023
1470074
feat: add GPL license
Leizhenpeng Mar 26, 2023
03c1bfe
refactor: remove entrypoint.sh to improve docker build and deploy
wengchaoxi Mar 26, 2023
3b59361
Merge pull request #127 from wengchaoxi/improve-docker-deploy
Leizhenpeng Mar 26, 2023
c918df3
fix: confirm clear context card callback exception
Leizhenpeng Mar 27, 2023
5751762
refactor: split event action into separate files
Leizhenpeng Mar 27, 2023
14c3aa4
feat: add balance billing query
Leizhenpeng Mar 27, 2023
29672e0
chore: add balance query in help menu
Leizhenpeng Mar 27, 2023
f084cdc
chore: add balance query in readme
Leizhenpeng Mar 27, 2023
95916e2
chore: tidy mod
Leizhenpeng Mar 27, 2023
0bf2100
Merge pull request #131 from Leizhenpeng/feat/add_balance_query
Leizhenpeng Mar 27, 2023
9ad9448
Update readme.md
Leizhenpeng Mar 27, 2023
fbbbd8c
feat: add role list yaml
Leizhenpeng Mar 27, 2023
d21bed2
feat: read role yaml
Leizhenpeng Mar 27, 2023
63d0639
feat: send role-tag-choose card
Leizhenpeng Mar 27, 2023
e95d909
refactor: kill if statement in card handler
Leizhenpeng Mar 27, 2023
106f225
feat: support select build in role list
Leizhenpeng Mar 27, 2023
50d2223
chore: clean code about msg send
Leizhenpeng Mar 27, 2023
bdfd643
chore: optimise content in readme
Leizhenpeng Mar 27, 2023
f9c8ebf
chore: optimise role meta
Leizhenpeng Mar 28, 2023
604572c
chore: optimise role meta
Leizhenpeng Mar 28, 2023
f8bc8e3
Merge pull request #133 from Leizhenpeng/feat/support_built_in_roles
Leizhenpeng Mar 28, 2023
a41e9d4
Update readme.md
Leizhenpeng Mar 28, 2023
c216cf4
chore: clean mod
Leizhenpeng Mar 28, 2023
7828ba3
Merge branch 'master' into feat/support_built_in_roles
Leizhenpeng Mar 28, 2023
80fa712
fix: fix docker build miss file error
Leizhenpeng Mar 28, 2023
46ec080
Merge pull request #138 from Leizhenpeng/feat/support_built_in_roles
Leizhenpeng Mar 28, 2023
6f3fe4f
Update readme.md
Leizhenpeng Mar 28, 2023
31aa8bb
Update readme.md
Leizhenpeng Mar 28, 2023
5807d5d
fix: #146 include role_list when build binary
Leizhenpeng Mar 28, 2023
2cf6d2a
fix: #100 #142 #115 unicode characters show problem
Leizhenpeng Mar 28, 2023
8cadbad
Merge pull request #147 from Leizhenpeng/fix/md_encoding_error
Leizhenpeng Mar 28, 2023
f44365e
修复README
riba2534 Mar 28, 2023
b5eb9fd
fix: #149 raise the priority of the clear command.
Leizhenpeng Mar 28, 2023
9f1253c
Merge pull request #148 from riba2534/master
Leizhenpeng Mar 28, 2023
f254c46
Merge pull request #150 from Leizhenpeng/fix/clear_invaild_in_pic_mode
Leizhenpeng Mar 28, 2023
ecbc584
bug: fix environment invalid type
yokaimeow Mar 29, 2023
7c22d9d
Merge pull request #154 from yokaimeow/master
Leizhenpeng Mar 29, 2023
e9503ca
Update role_list.yaml
pengfeiu Mar 30, 2023
7d0d50f
Merge pull request #158 from pengfeiu/patch-1
Leizhenpeng Mar 30, 2023
2a7c328
修复 docker build 失败
Maple1401 Mar 31, 2023
3ec4ae7
Merge pull request #166 from Maple1401/fix-build
Leizhenpeng Mar 31, 2023
d218267
🎨 Formatted the Markdown syntax and added 2 new roles.
samzong Apr 4, 2023
ac5bfb6
doc: Update readme.md
Leizhenpeng Apr 4, 2023
51492b9
docs: add free api share
Leizhenpeng Apr 5, 2023
14737cd
docs: add free api share
Leizhenpeng Apr 5, 2023
d781fdc
Merge remote-tracking branch 'origin/readme/add_free_api' into readme…
Leizhenpeng Apr 5, 2023
65e32d2
docs: add free api share
Leizhenpeng Apr 5, 2023
3d5e19d
Merge pull request #176 from Leizhenpeng/readme/add_free_api
Leizhenpeng Apr 5, 2023
1b7aa1e
doc: Supplementary configuration screenshot
Leizhenpeng Apr 5, 2023
a21830e
feat: add azure config
Leizhenpeng Apr 5, 2023
44d017d
feat: add azure client init
Leizhenpeng Apr 5, 2023
16848ab
refactor: Adjust the structure pointer type of ChatGPT method
Leizhenpeng Apr 5, 2023
9da71eb
feat: complete chat mode with azure api
Leizhenpeng Apr 5, 2023
7a2bfb5
feat: pass azure not support handler action
Leizhenpeng Apr 5, 2023
c555e89
feat: fix the load balancing problem of azure api
Leizhenpeng Apr 6, 2023
579edaa
doc: add azure docker guide
Leizhenpeng Apr 6, 2023
9f2e451
doc: chore update
Leizhenpeng Apr 6, 2023
a5e036f
fix: #178 goroutine nil pointer causes the service crash
Apr 6, 2023
84a9657
Merge pull request #177 from Leizhenpeng/feat/support-azure-openai
Leizhenpeng Apr 6, 2023
8803cc0
Merge pull request #179 from q956673351/fix/nil_pointer_err
Leizhenpeng Apr 7, 2023
5d9fcdb
Merge pull request #173 from SAMZONG/master
Leizhenpeng Apr 7, 2023
59aca9d
docs: add  recruitment
Leizhenpeng Apr 9, 2023
c92060d
Update readme.md
Leizhenpeng Apr 9, 2023
76e8555
Update readme.md
Leizhenpeng Apr 10, 2023
00309b4
Update readme.md
Leizhenpeng Apr 11, 2023
82c41e6
Update readme.md
Leizhenpeng Apr 11, 2023
734c29a
Update readme.md
Leizhenpeng Apr 11, 2023
d95672b
feat: add gpt token calculate
LufeiCheng Apr 12, 2023
d7d8bca
lint: better import order
xpzouying Apr 12, 2023
99fec59
Update readme.md
Leizhenpeng Apr 12, 2023
16d0f2c
Merge branch 'LufeiCheng-feat_cal_token'
Leizhenpeng Apr 12, 2023
afd24f5
Merge remote-tracking branch 'origin/master'
Leizhenpeng Apr 12, 2023
b082035
doc: chore update
Leizhenpeng Apr 12, 2023
e6456c1
Merge branch 'xpzouying-zy-fix-lint-error'
Leizhenpeng Apr 12, 2023
3cbb4a4
Update readme.md
Leizhenpeng Apr 13, 2023
3c13a83
Update readme.md
Leizhenpeng Apr 13, 2023
595a2ab
解决余额查询问题
yangmingyuan380 Apr 13, 2023
880fcf1
Merge pull request #187 from yangmingyuan380/fix/billing_bug
Leizhenpeng Apr 13, 2023
9b9a6cc
feat #181 add temperature params modify by choose ai mode
LufeiCheng Apr 14, 2023
c5afe23
Merge pull request #194 from LufeiCheng/feat_ai_mode
Leizhenpeng Apr 14, 2023
99654b2
Update readme.md
eltociear Apr 14, 2023
8b3f711
Merge pull request #195 from eltociear/patch-1
Leizhenpeng Apr 14, 2023
dcb50a9
Update 开源马拉松
Leizhenpeng Apr 15, 2023
ffdb52f
Update 项目奖励
Leizhenpeng Apr 16, 2023
91188f5
Update readme.md
Leizhenpeng Apr 16, 2023
7a0f049
Update qrcode
Leizhenpeng Apr 17, 2023
9d8b6b7
fix: #156 #184 post text parse err
LufeiCheng Apr 17, 2023
f5885bb
ref: config.yaml AZURE_ON default set false
dishangyijiao Apr 17, 2023
a270195
Merge pull request #197 from dishangyijiao/ref-config-yamal
Leizhenpeng Apr 17, 2023
23d952e
引入日志logrus,并开启了larksuite的debug
toeasy Apr 17, 2023
c8f09a4
引入日志logrus,并开启了larksuite的debug closed #198
toeasy Apr 17, 2023
73d849f
Merge remote-tracking branch 'origin/master'
toeasy Apr 17, 2023
4294b65
Update image
bestony Apr 17, 2023
cfe9fe1
Update wx qrcode
Leizhenpeng Apr 18, 2023
7e9ce6b
Update reward
Leizhenpeng Apr 19, 2023
4952656
feat: 允许qpi2d
Leizhenpeng Apr 21, 2023
3c04da1
Update readme.md
Leizhenpeng Apr 21, 2023
2707040
Update readme.md
Leizhenpeng Apr 22, 2023
16a3a42
Update readme.md
Leizhenpeng Apr 22, 2023
3720ac2
Merge pull request #196 from LufeiCheng/fix_post_err
Leizhenpeng May 1, 2023
4243e27
fix #218 重试逻辑Bad Request报错
LufeiCheng May 6, 2023
94b8a09
Merge pull request #219 from LufeiCheng/fix_retry_err
Leizhenpeng May 7, 2023
9c95a2a
feat: change cAPort to caPort
XieWeiXie May 11, 2023
d6d09f9
Update readme.md
Leizhenpeng May 16, 2023
69c05df
Merge pull request #223 from XieWeiXie/master
Leizhenpeng May 20, 2023
c41ff7e
Update readme.md
Leizhenpeng May 20, 2023
8870694
Update readme.md
Leizhenpeng May 20, 2023
75b1115
Update readme.md
Leizhenpeng May 20, 2023
85c478d
Update readme.md
Leizhenpeng May 26, 2023
d177dad
Update readme.md
DDMeaqua May 31, 2023
735ef77
Update readme.md
Leizhenpeng Jun 3, 2023
696aae7
Update readme.md
DDMeaqua Jun 5, 2023
e2fb535
Update readme.md
DDMeaqua Jun 6, 2023
01445fb
Update readme.md
DDMeaqua Jun 6, 2023
8d2c9b8
Update readme.md
DDMeaqua Jun 6, 2023
3268981
Update readme.md
DDMeaqua Jun 10, 2023
63f5193
Update readme.md
DDMeaqua Jun 10, 2023
8fa76a4
Update readme.md
Leizhenpeng Jun 11, 2023
3b3595d
Update readme.md
Leizhenpeng Jun 11, 2023
d896b7b
Update readme.md
Leizhenpeng Jun 11, 2023
c3ec3fd
Update readme.md
Leizhenpeng Jun 12, 2023
74f5c33
Update readme.md
Leizhenpeng Jun 12, 2023
157de0a
Update readme.md
DDMeaqua Jun 12, 2023
c623d31
Update readme.md
DDMeaqua Jun 12, 2023
897355f
Update readme.md
DDMeaqua Jun 14, 2023
5f87644
Update readme.md
DDMeaqua Jun 14, 2023
fa5e980
Update readme.md
DDMeaqua Jun 15, 2023
2f59267
Update readme.md
DDMeaqua Jun 16, 2023
5d9497c
Update readme.md
DDMeaqua Jun 16, 2023
f4d6034
Update readme.md
DDMeaqua Jun 17, 2023
8db578a
Update readme.md
DDMeaqua Jun 19, 2023
5e86f0b
Update readme.md
DDMeaqua Jun 19, 2023
bd07e32
Update readme.md
Leizhenpeng Jun 22, 2023
fbd78da
chore: change aliyun memory size
Leizhenpeng Jun 28, 2023
a504424
Merge remote-tracking branch 'origin/master'
Leizhenpeng Jun 28, 2023
69e3d75
chore: update readme
Leizhenpeng Jun 28, 2023
4e5b21e
feat: support choose model
Leizhenpeng Jun 28, 2023
699f434
Merge pull request #246 from ConnectAI-E/feat/support_choose_model
Leizhenpeng Jun 28, 2023
97e214c
feat: 增加ChatGPT模式
Leizhenpeng Jun 28, 2023
d9afc02
feat: 默认提示词模拟ChatGPT
Leizhenpeng Jun 28, 2023
d736dd1
Merge pull request #247 from ConnectAI-E/feat/support_choose_model
Leizhenpeng Jun 28, 2023
7ff4856
Merge branch 'master' of github.com:toeasy/Feishu-OpenAI into toeasy-…
Leizhenpeng Jun 28, 2023
fff9eb0
feat: 支持logrus日志打印
Leizhenpeng Jun 28, 2023
85b3aa8
Merge branch 'toeasy-master'
Leizhenpeng Jun 28, 2023
c6d50ee
feat: support replit deploy
Leizhenpeng Jun 29, 2023
58a70cf
feat: support replit deploy
Leizhenpeng Jun 29, 2023
b7a4fd3
feat: support replit deploy
Leizhenpeng Jun 29, 2023
39e530a
Update readme.md
Leizhenpeng Jun 29, 2023
1401fd1
Update readme.md
DDMeaqua Jun 30, 2023
67fe53e
Merge pull request #249 from DDMeaqua/patch-1
Leizhenpeng Jun 30, 2023
95f6ce9
Update event_msg_action.go
xmoxmo Jul 1, 2023
7e5044e
Update event_msg_action.go
xmoxmo Jul 1, 2023
3e6580f
Merge pull request #250 from xmoxmo/master
Leizhenpeng Jul 1, 2023
2a6228a
Update readme.md
Leizhenpeng Jul 1, 2023
2da06ac
Update readme.md
Leizhenpeng Jul 1, 2023
ce671f4
Update readme.md
DDMeaqua Jul 3, 2023
2dcfebb
Merge pull request #251 from DDMeaqua/patch-1
DDMeaqua Jul 3, 2023
185741c
feat: support stream mode
Leizhenpeng Jul 7, 2023
21890de
chore: update readme
Leizhenpeng Jul 7, 2023
cdb1b24
Merge pull request #253 from ConnectAI-E/feat/stream
Leizhenpeng Jul 7, 2023
e4c22a3
Update event_msg_action.go
xmoxmo Jul 7, 2023
a079297
Update msg.go
xmoxmo Jul 7, 2023
863153d
feat: 流式接口返回UI样式更改
Leizhenpeng Jul 8, 2023
379b1e8
Merge branch 'xmoxmo-master'
Leizhenpeng Jul 8, 2023
82b31e9
feat: 流模式接口兼容Azure
Leizhenpeng Jul 8, 2023
3434835
Merge pull request #255 from ConnectAI-E/support-azure
Leizhenpeng Jul 8, 2023
c264bdf
chore: slice replace loop
testwill Jul 9, 2023
dc0cfdf
Merge pull request #256 from testwill/loop
Leizhenpeng Jul 9, 2023
393b331
Update stream.go
xmoxmo Jul 14, 2023
125a58b
Merge pull request #259 from xmoxmo/patch-1
Leizhenpeng Jul 14, 2023
c56a1df
feat: 在azure模式下允许openai key 留空
Leizhenpeng Jul 14, 2023
bd8f07f
feat: add feishu base url
hehan-wang Aug 31, 2023
a555b0a
Merge pull request #263 from hehan-wang/master
Leizhenpeng Aug 31, 2023
3b5fb83
feat: default to dall-e-3, support more image res, add image style
wenerme Nov 16, 2023
05b12e3
Update readme.md
Leizhenpeng Nov 16, 2023
1847020
Merge pull request #264 from wenerme/wener
Leizhenpeng Nov 16, 2023
f9e74ad
chore: 修改readme
Leizhenpeng Nov 16, 2023
df271db
chore: update msg
Leizhenpeng Nov 16, 2023
c9f3c60
chore: add vision help card
Leizhenpeng Nov 16, 2023
79853ca
chore: add msg tip
Leizhenpeng Nov 16, 2023
fa4cf7b
feat: 修改ai发散承担的文案和temperature对应范围
Leizhenpeng Nov 19, 2023
ed79cfc
chore: update log level
Leizhenpeng Nov 19, 2023
20f1ea2
Merge pull request #268 from ConnectAI-E/update_ui
Leizhenpeng Nov 19, 2023
bb2e403
feat: 完成gpt4v的openai对接和单元测试
Leizhenpeng Nov 20, 2023
2718b61
feat: 检测图片自动后推荐切换图片创作模式
Leizhenpeng Nov 20, 2023
14ab523
Merge branch 'master' into support_vision
Leizhenpeng Nov 20, 2023
4bb5cb0
feat: 读取图片base64
Leizhenpeng Nov 20, 2023
c1b4936
feat: 修改content上传
Leizhenpeng Nov 20, 2023
15d0099
feat: 单图测试完成
Leizhenpeng Nov 20, 2023
4624006
feat: support gpt4v
Leizhenpeng Nov 20, 2023
2c1b1cf
feat: 优化代码结构和UI文案
Leizhenpeng Nov 20, 2023
c1d811e
feat: 还原参数
Leizhenpeng Nov 20, 2023
79dd756
Merge pull request #265 from ConnectAI-E/support_vision
Leizhenpeng Nov 20, 2023
8737df6
Update readme.md
Leizhenpeng Nov 20, 2023
83d2a33
Update readme.md
Leizhenpeng Nov 20, 2023
e1eaf94
Update readme.md
Leizhenpeng Nov 21, 2023
774a49d
Update readme.md
Leizhenpeng Jan 11, 2024
5082281
Update readme.md
DDMeaqua May 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/document.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 文档改善
about: 欢迎分享您的文档改善建议!
title: "📝 文档改善"
labels: ["documentation"]
---

# 文档改善建议 📝

欢迎在此分享您对文档的改善建议,我们期待听到您的想法和建议。

## 您的建议是什么? 🤔

请简要描述您的文档改善建议,包括您的目标和想法。

如果您的建议是解决某个特定问题的,请尽可能提供更多的上下文和细节。

## 您的建议有哪些优势? 🌟

请简要描述您的建议的优势和特点,比如:

- 是否可以提高文档的可读性和易用性?
- 是否可以使文档更加详细和准确?
- 是否可以让文档更好地反映项目的实际情况?

感谢您的分享和支持!🙏
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: 功能改善
about: 欢迎分享您的改善建议!
title: "🚀 功能改善"
labels: ["enhancement"]
---

# 功能改善建议 🚀

欢迎在此分享您对功能的改善建议,我们期待听到您的想法和建议。

## 您的建议是什么? 🤔

请简要描述您的功能改善建议,包括您的目标和想法。

如果您的建议是解决某个特定问题的,请尽可能提供更多的上下文和细节。


感谢您的分享和支持!🙏
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 错误报告
about: 提出关于此项目的错误报告
title: "🐞 错误报告"
labels: ["bug"]
---

# 错误报告 🐞

如果您在使用此项目时遇到了错误,请在此报告,我们会尽快解决此问题。

## 错误描述 🤔

请详细地描述您遇到的问题,包括出现问题的环境和步骤,以及您已经尝试过的解决方法。

另外,如果您在解决问题时已经查看过其他 GitHub Issue,请务必在文本中说明并引用相关信息。

## 附加信息 📝

请提供以下信息以帮助我们更快地解决问题:

- 输出日志,包括错误信息和堆栈跟踪
- 相关的代码片段或文件
- 您的操作系统、软件版本等环境信息

感谢您的反馈!🙏
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: 项目维护
about: 欢迎提交您的项目维护问题和建议!
title: "🔧 项目维护"
labels: ["maintenance"]
---

# 项目维护问题和建议 🔧

欢迎在此分享您对项目维护的问题和建议,我们期待听到您的想法和建议。

## 您的问题或建议是什么? 🤔

请简要描述您遇到的项目维护问题或者您的项目维护建议,包括您的目标和想法。

注意:如果您的建议涉及到以下方面,请在描述中加以说明,以帮助我们更好地理解您的意见。

- 代码重构
- 设计模式加强
- 优化算法
- 依赖升级

## 您期望的解决方案是什么? 💡

请简要描述您期望的解决方案,包括您的期望和想法。

如果您期望的解决方案是解决某个特定问题的,请尽可能提供更多的上下文和细节。

感谢您的分享和支持!🙏
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 部署问题反馈
about: 如果您在部署中遇到任何问题,欢迎在这里与我们交流。
title: "🚰 部署问题反馈"
labels: ["question"]
---

# 问题交流 💬

欢迎在此提交您遇到的问题,我们会尽快回复您并提供帮助。

## 问题描述 🤔

请详细描述您遇到的问题,包括出现问题的环境和步骤,以及您已经尝试过的解决方法。

如果您在解决问题时已经查看过其他 GitHub Issue,请务必在文本中说明并引用相关信息。

## 附加信息 📝

为了更好地了解您遇到的问题,我们需要您提供以下信息:

- 输出日志,包括错误信息和堆栈跟踪。
- 相关的代码片段或文件。
- 操作系统、golang 版本等环境信息。

感谢您的反馈和支持!🙏
6 changes: 6 additions & 0 deletions .github/pull-request-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- 请务必在创建PR前,在右侧 Labels 选项中加上label的其中一个: [feature]、[fix]、[documentation]、[dependencies]、[test] 。以便于Actions自动生成Releases时自动对PR进行归类。-->
## 描述
请简要描述此Pull Request中的更改。

## 相关问题
- [问题编号](问题链接)
43 changes: 43 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
name-template: 'v$NEXT_PATCH_VERSION 🌈'
tag-template: 'v$NEXT_PATCH_VERSION'
version-template: $MAJOR.$MINOR.$PATCH
# Emoji reference: https://gitmoji.carloscuesta.me/
categories:
- title: 🚀 Features
labels:
- 'feature'
- 'enhancement'
- 'kind/feature'
- title: 🚑️ Bug Fixes
labels:
- 'fix'
- 'bugfix'
- 'bug'
- 'regression'
- 'kind/bug'
- title: 📝 Documentation updates
labels:
- 'doc'
- 'documentation'
- 'kind/doc'
- title: 👷 Maintenance
labels:
- refactor
- chore
- dependencies
- 'kind/chore'
- 'kind/dep'
- title: 🚦 Tests
labels:
- test
- tests
exclude-labels:
- reverted
- no-changelog
- skip-changelog
- invalid
change-template: '* $TITLE (#$NUMBER) @$AUTHOR'
template: |
## What’s Changed
$CHANGES
39 changes: 39 additions & 0 deletions .github/workflows/binary-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Release

on:
release:
types: [created,published]

permissions:
contents: read

jobs:
build-go-binary:
permissions:
contents: write # for build-go-binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ linux, windows, darwin ] # 需要打包的系统
goarch: [ amd64, arm64 ] # 需要打包的架构
exclude: # 排除某些平台和架构
- goarch: arm64
goos: windows
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Create version file
run: echo ${{ github.event.release.tag_name }} > VERSION
- name: Parallel build
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.18
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
executable_compression: "upx -9"
md5sum: false
project_path: "./code"
binary_name: "feishu-chatgpt"
extra_files: ./code/config.example.yaml readme.md LICENSE ./code/role_list.yaml
59 changes: 59 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: build docker image

# release 事件触发 + Master 分支触发 + 手动触发
on:
# push:
# branches:
# - master
release:
types: [created,published]

# 可以手动触发
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'

jobs:
buildx:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
# 所需要的体系结构,可以在 Available platforms 步骤中获取所有的可用架构
platforms: linux/amd64,linux/arm64/v8
# 镜像推送时间
push: ${{ github.event_name != 'pull_request' }}
# 给清单打上多个标签
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.GITHUB_REPOSITORY_NAME_PART }}:${{ env.GITHUB_REF_NAME }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.GITHUB_REPOSITORY_NAME_PART }}:latest
38 changes: 38 additions & 0 deletions .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ config.yaml


/code/target/
start-feishubot
.env

docker.md
# Mac OS
.DS_Store
**/.DS_Store
*.pem
17 changes: 17 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
run = "cd code && ./main"
hidden = ["main"]
compile = "cd code&&go build -o main ."

[languages.go]
pattern = "**/*.go"


[env]
APP_ID: xx
APP_SECRET: xx
APP_ENCRYPT_KEY: xx
APP_VERIFICATION_TOKEN: xx
BOT_NAME: ChatGPT
OPENAI_MODEL: gpt-3.5-turbo
OPENAI_MAX_TOKENS: 2000
OPENAI_KEY: sk-xx
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM golang:1.18 as golang

ENV GO111MODULE=on \
CGO_ENABLED=1 \
GOPROXY=https://goproxy.cn,direct

WORKDIR /build
ADD /code /build

RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-w -s' -o feishu_chatgpt

FROM alpine:latest

WORKDIR /app

RUN apk add --no-cache bash
COPY --from=golang /build/feishu_chatgpt /app
COPY --from=golang /build/role_list.yaml /app
EXPOSE 9000
ENTRYPOINT ["/app/feishu_chatgpt"]
Loading
Loading