├── .gitbook
└── assets
│ ├── JRWY2}JTST9R]F3OY4EKT{2.png
│ ├── WNGVV37)W{@W_MZIT60CPNC.png
│ ├── image (1).png
│ ├── image (10).png
│ ├── image (11).png
│ ├── image (12).png
│ ├── image (13) (1).png
│ ├── image (13).png
│ ├── image (14).png
│ ├── image (15).png
│ ├── image (16).png
│ ├── image (17).png
│ ├── image (18).png
│ ├── image (19).png
│ ├── image (2).png
│ ├── image (20).png
│ ├── image (21).png
│ ├── image (22).png
│ ├── image (23) (1).png
│ ├── image (23).png
│ ├── image (24).png
│ ├── image (25).png
│ ├── image (26) (1).png
│ ├── image (26).png
│ ├── image (27).png
│ ├── image (28).png
│ ├── image (29) (1).png
│ ├── image (29).png
│ ├── image (3).png
│ ├── image (30).png
│ ├── image (31).png
│ ├── image (32).png
│ ├── image (33).png
│ ├── image (34).png
│ ├── image (35).png
│ ├── image (36).png
│ ├── image (37).png
│ ├── image (38).png
│ ├── image (39) (1).png
│ ├── image (39).png
│ ├── image (4).png
│ ├── image (40).png
│ ├── image (41) (1).png
│ ├── image (41).png
│ ├── image (42).png
│ ├── image (43).png
│ ├── image (44).png
│ ├── image (45).png
│ ├── image (46).png
│ ├── image (47).png
│ ├── image (48).png
│ ├── image (49).png
│ ├── image (5).png
│ ├── image (50).png
│ ├── image (51).png
│ ├── image (52).png
│ ├── image (53) (1).png
│ ├── image (53).png
│ ├── image (54).png
│ ├── image (55).png
│ ├── image (6) (1).png
│ ├── image (6).png
│ ├── image (7).png
│ ├── image (8).png
│ ├── image (9).png
│ └── image.png
├── LICENSE
├── README.md
├── SUMMARY.md
├── bu-shu-jiao-cheng
└── kuai-su-bu-shu-jiao-cheng
│ ├── README.md
│ ├── aidlux-bu-shu-jiao-cheng.md
│ ├── linux-yi-jian-bu-shu-jiao-cheng.md
│ ├── windows-kuai-su-bu-shu-jiao-cheng-gocqhttp-ban.md
│ ├── windows-kuai-su-bu-shu-jiao-cheng.md
│ └── wip-railway-bu-shu.md
├── chang-jian-wen-ti-jie-da
├── chatgpt-qi-dong-guo-cheng-zhong-de-chang-jian-wen-ti.md
├── gocqhttp-qi-dong-guo-cheng-zhong-de-chang-jian-wen-ti.md
├── ji-qi-ren-zai-shi-yong-guo-cheng-zhong-de-chang-jian-wen-ti.md
├── mirai-qi-dong-guo-cheng-zhong-de-chang-jian-wen-ti.md
└── webui-chang-jian-wen-ti-jie-da.md
├── e-du-xi-tong-hei-bai-ming-dan.md
├── pei-zhi-wen-jian-jiao-cheng
├── ai-hua-tu.md
├── chu-fa-xing-shi-yu-zhi-ling.md
├── dui-jie-liao-tian-ping-tai
│ ├── README.md
│ ├── dui-jie-discord.md
│ ├── dui-jie-ge-ren-wei-xin.md
│ ├── dui-jie-mirai.md
│ ├── dui-jie-onebot-gocqhttp.md
│ ├── dui-jie-qi-ye-wei-xin.md
│ └── dui-jie-telegram.md
├── hui-fu-nei-rong
│ ├── README.md
│ └── bai-du-yun-hui-fu-shen-he.md
├── jie-ru-ai-ping-tai
│ ├── README.md
│ ├── jie-ru-chatglm.md
│ ├── jie-ru-claude.md
│ ├── jie-ru-google-bard.md
│ ├── jie-ru-new-bing-sydney.md
│ ├── jie-ru-openai-de-chatgpt.md
│ ├── jie-ru-poe.com.md
│ ├── jie-ru-wen-xin-yi-yan.md
│ └── jie-ru-xun-fei-xing-huo-da-mo-xing.md
├── wan-zheng-pei-zhi-wen-jian-yang-li.md
├── wen-zi-zhuan-tu-pian.md
└── wen-zi-zhuan-yu-yin
│ ├── README.md
│ ├── azure-tts-yu-yin-jie-ru-jiao-cheng.md
│ ├── edge-tts-yu-yin-jie-ru-jiao-cheng.md
│ └── vits-yu-yin-jie-ru-jiao-cheng.md
└── yu-she-xi-tong.md
/.gitbook/assets/JRWY2}JTST9R]F3OY4EKT{2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/JRWY2}JTST9R]F3OY4EKT{2.png
--------------------------------------------------------------------------------
/.gitbook/assets/WNGVV37)W{@W_MZIT60CPNC.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/WNGVV37)W{@W_MZIT60CPNC.png
--------------------------------------------------------------------------------
/.gitbook/assets/image (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (10).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (10).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (11).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (11).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (12).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (12).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (13) (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (13) (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (13).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (13).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (14).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (14).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (15).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (15).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (16).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (16).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (17).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (17).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (18).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (18).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (19).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (19).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (2).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (2).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (20).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (20).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (21).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (21).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (22).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (22).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (23) (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (23) (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (23).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (23).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (24).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (24).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (25).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (25).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (26) (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (26) (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (26).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (26).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (27).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (27).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (28).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (28).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (29) (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (29) (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (29).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (29).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (3).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (3).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (30).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (30).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (31).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (31).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (32).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (32).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (33).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (33).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (34).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (34).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (35).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (35).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (36).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (36).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (37).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (37).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (38).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (38).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (39) (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (39) (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (39).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (39).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (4).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (4).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (40).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (40).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (41) (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (41) (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (41).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (41).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (42).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (42).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (43).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (43).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (44).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (44).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (45).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (45).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (46).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (46).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (47).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (47).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (48).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (48).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (49).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (49).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (5).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (5).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (50).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (50).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (51).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (51).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (52).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (52).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (53) (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (53) (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (53).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (53).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (54).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (54).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (55).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (55).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (6) (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (6) (1).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (6).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (6).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (7).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (7).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (8).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (8).png
--------------------------------------------------------------------------------
/.gitbook/assets/image (9).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image (9).png
--------------------------------------------------------------------------------
/.gitbook/assets/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lss233/chatgpt-for-bot-docs/28daa369775949014c60b9986c0f586d135034bd/.gitbook/assets/image.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Attribution 4.0 International
2 |
3 | =======================================================================
4 |
5 | Creative Commons Corporation ("Creative Commons") is not a law firm and
6 | does not provide legal services or legal advice. Distribution of
7 | Creative Commons public licenses does not create a lawyer-client or
8 | other relationship. Creative Commons makes its licenses and related
9 | information available on an "as-is" basis. Creative Commons gives no
10 | warranties regarding its licenses, any material licensed under their
11 | terms and conditions, or any related information. Creative Commons
12 | disclaims all liability for damages resulting from their use to the
13 | fullest extent possible.
14 |
15 | Using Creative Commons Public Licenses
16 |
17 | Creative Commons public licenses provide a standard set of terms and
18 | conditions that creators and other rights holders may use to share
19 | original works of authorship and other material subject to copyright
20 | and certain other rights specified in the public license below. The
21 | following considerations are for informational purposes only, are not
22 | exhaustive, and do not form part of our licenses.
23 |
24 | Considerations for licensors: Our public licenses are
25 | intended for use by those authorized to give the public
26 | permission to use material in ways otherwise restricted by
27 | copyright and certain other rights. Our licenses are
28 | irrevocable. Licensors should read and understand the terms
29 | and conditions of the license they choose before applying it.
30 | Licensors should also secure all rights necessary before
31 | applying our licenses so that the public can reuse the
32 | material as expected. Licensors should clearly mark any
33 | material not subject to the license. This includes other CC-
34 | licensed material, or material used under an exception or
35 | limitation to copyright. More considerations for licensors:
36 | wiki.creativecommons.org/Considerations_for_licensors
37 |
38 | Considerations for the public: By using one of our public
39 | licenses, a licensor grants the public permission to use the
40 | licensed material under specified terms and conditions. If
41 | the licensor's permission is not necessary for any reason--for
42 | example, because of any applicable exception or limitation to
43 | copyright--then that use is not regulated by the license. Our
44 | licenses grant only permissions under copyright and certain
45 | other rights that a licensor has authority to grant. Use of
46 | the licensed material may still be restricted for other
47 | reasons, including because others have copyright or other
48 | rights in the material. A licensor may make special requests,
49 | such as asking that all changes be marked or described.
50 | Although not required by our licenses, you are encouraged to
51 | respect those requests where reasonable. More considerations
52 | for the public:
53 | wiki.creativecommons.org/Considerations_for_licensees
54 |
55 | =======================================================================
56 |
57 | Creative Commons Attribution 4.0 International Public License
58 |
59 | By exercising the Licensed Rights (defined below), You accept and agree
60 | to be bound by the terms and conditions of this Creative Commons
61 | Attribution 4.0 International Public License ("Public License"). To the
62 | extent this Public License may be interpreted as a contract, You are
63 | granted the Licensed Rights in consideration of Your acceptance of
64 | these terms and conditions, and the Licensor grants You such rights in
65 | consideration of benefits the Licensor receives from making the
66 | Licensed Material available under these terms and conditions.
67 |
68 |
69 | Section 1 -- Definitions.
70 |
71 | a. Adapted Material means material subject to Copyright and Similar
72 | Rights that is derived from or based upon the Licensed Material
73 | and in which the Licensed Material is translated, altered,
74 | arranged, transformed, or otherwise modified in a manner requiring
75 | permission under the Copyright and Similar Rights held by the
76 | Licensor. For purposes of this Public License, where the Licensed
77 | Material is a musical work, performance, or sound recording,
78 | Adapted Material is always produced where the Licensed Material is
79 | synched in timed relation with a moving image.
80 |
81 | b. Adapter's License means the license You apply to Your Copyright
82 | and Similar Rights in Your contributions to Adapted Material in
83 | accordance with the terms and conditions of this Public License.
84 |
85 | c. Copyright and Similar Rights means copyright and/or similar rights
86 | closely related to copyright including, without limitation,
87 | performance, broadcast, sound recording, and Sui Generis Database
88 | Rights, without regard to how the rights are labeled or
89 | categorized. For purposes of this Public License, the rights
90 | specified in Section 2(b)(1)-(2) are not Copyright and Similar
91 | Rights.
92 |
93 | d. Effective Technological Measures means those measures that, in the
94 | absence of proper authority, may not be circumvented under laws
95 | fulfilling obligations under Article 11 of the WIPO Copyright
96 | Treaty adopted on December 20, 1996, and/or similar international
97 | agreements.
98 |
99 | e. Exceptions and Limitations means fair use, fair dealing, and/or
100 | any other exception or limitation to Copyright and Similar Rights
101 | that applies to Your use of the Licensed Material.
102 |
103 | f. Licensed Material means the artistic or literary work, database,
104 | or other material to which the Licensor applied this Public
105 | License.
106 |
107 | g. Licensed Rights means the rights granted to You subject to the
108 | terms and conditions of this Public License, which are limited to
109 | all Copyright and Similar Rights that apply to Your use of the
110 | Licensed Material and that the Licensor has authority to license.
111 |
112 | h. Licensor means the individual(s) or entity(ies) granting rights
113 | under this Public License.
114 |
115 | i. Share means to provide material to the public by any means or
116 | process that requires permission under the Licensed Rights, such
117 | as reproduction, public display, public performance, distribution,
118 | dissemination, communication, or importation, and to make material
119 | available to the public including in ways that members of the
120 | public may access the material from a place and at a time
121 | individually chosen by them.
122 |
123 | j. Sui Generis Database Rights means rights other than copyright
124 | resulting from Directive 96/9/EC of the European Parliament and of
125 | the Council of 11 March 1996 on the legal protection of databases,
126 | as amended and/or succeeded, as well as other essentially
127 | equivalent rights anywhere in the world.
128 |
129 | k. You means the individual or entity exercising the Licensed Rights
130 | under this Public License. Your has a corresponding meaning.
131 |
132 |
133 | Section 2 -- Scope.
134 |
135 | a. License grant.
136 |
137 | 1. Subject to the terms and conditions of this Public License,
138 | the Licensor hereby grants You a worldwide, royalty-free,
139 | non-sublicensable, non-exclusive, irrevocable license to
140 | exercise the Licensed Rights in the Licensed Material to:
141 |
142 | a. reproduce and Share the Licensed Material, in whole or
143 | in part; and
144 |
145 | b. produce, reproduce, and Share Adapted Material.
146 |
147 | 2. Exceptions and Limitations. For the avoidance of doubt, where
148 | Exceptions and Limitations apply to Your use, this Public
149 | License does not apply, and You do not need to comply with
150 | its terms and conditions.
151 |
152 | 3. Term. The term of this Public License is specified in Section
153 | 6(a).
154 |
155 | 4. Media and formats; technical modifications allowed. The
156 | Licensor authorizes You to exercise the Licensed Rights in
157 | all media and formats whether now known or hereafter created,
158 | and to make technical modifications necessary to do so. The
159 | Licensor waives and/or agrees not to assert any right or
160 | authority to forbid You from making technical modifications
161 | necessary to exercise the Licensed Rights, including
162 | technical modifications necessary to circumvent Effective
163 | Technological Measures. For purposes of this Public License,
164 | simply making modifications authorized by this Section 2(a)
165 | (4) never produces Adapted Material.
166 |
167 | 5. Downstream recipients.
168 |
169 | a. Offer from the Licensor -- Licensed Material. Every
170 | recipient of the Licensed Material automatically
171 | receives an offer from the Licensor to exercise the
172 | Licensed Rights under the terms and conditions of this
173 | Public License.
174 |
175 | b. No downstream restrictions. You may not offer or impose
176 | any additional or different terms or conditions on, or
177 | apply any Effective Technological Measures to, the
178 | Licensed Material if doing so restricts exercise of the
179 | Licensed Rights by any recipient of the Licensed
180 | Material.
181 |
182 | 6. No endorsement. Nothing in this Public License constitutes or
183 | may be construed as permission to assert or imply that You
184 | are, or that Your use of the Licensed Material is, connected
185 | with, or sponsored, endorsed, or granted official status by,
186 | the Licensor or others designated to receive attribution as
187 | provided in Section 3(a)(1)(A)(i).
188 |
189 | b. Other rights.
190 |
191 | 1. Moral rights, such as the right of integrity, are not
192 | licensed under this Public License, nor are publicity,
193 | privacy, and/or other similar personality rights; however, to
194 | the extent possible, the Licensor waives and/or agrees not to
195 | assert any such rights held by the Licensor to the limited
196 | extent necessary to allow You to exercise the Licensed
197 | Rights, but not otherwise.
198 |
199 | 2. Patent and trademark rights are not licensed under this
200 | Public License.
201 |
202 | 3. To the extent possible, the Licensor waives any right to
203 | collect royalties from You for the exercise of the Licensed
204 | Rights, whether directly or through a collecting society
205 | under any voluntary or waivable statutory or compulsory
206 | licensing scheme. In all other cases the Licensor expressly
207 | reserves any right to collect such royalties.
208 |
209 |
210 | Section 3 -- License Conditions.
211 |
212 | Your exercise of the Licensed Rights is expressly made subject to the
213 | following conditions.
214 |
215 | a. Attribution.
216 |
217 | 1. If You Share the Licensed Material (including in modified
218 | form), You must:
219 |
220 | a. retain the following if it is supplied by the Licensor
221 | with the Licensed Material:
222 |
223 | i. identification of the creator(s) of the Licensed
224 | Material and any others designated to receive
225 | attribution, in any reasonable manner requested by
226 | the Licensor (including by pseudonym if
227 | designated);
228 |
229 | ii. a copyright notice;
230 |
231 | iii. a notice that refers to this Public License;
232 |
233 | iv. a notice that refers to the disclaimer of
234 | warranties;
235 |
236 | v. a URI or hyperlink to the Licensed Material to the
237 | extent reasonably practicable;
238 |
239 | b. indicate if You modified the Licensed Material and
240 | retain an indication of any previous modifications; and
241 |
242 | c. indicate the Licensed Material is licensed under this
243 | Public License, and include the text of, or the URI or
244 | hyperlink to, this Public License.
245 |
246 | 2. You may satisfy the conditions in Section 3(a)(1) in any
247 | reasonable manner based on the medium, means, and context in
248 | which You Share the Licensed Material. For example, it may be
249 | reasonable to satisfy the conditions by providing a URI or
250 | hyperlink to a resource that includes the required
251 | information.
252 |
253 | 3. If requested by the Licensor, You must remove any of the
254 | information required by Section 3(a)(1)(A) to the extent
255 | reasonably practicable.
256 |
257 | 4. If You Share Adapted Material You produce, the Adapter's
258 | License You apply must not prevent recipients of the Adapted
259 | Material from complying with this Public License.
260 |
261 |
262 | Section 4 -- Sui Generis Database Rights.
263 |
264 | Where the Licensed Rights include Sui Generis Database Rights that
265 | apply to Your use of the Licensed Material:
266 |
267 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right
268 | to extract, reuse, reproduce, and Share all or a substantial
269 | portion of the contents of the database;
270 |
271 | b. if You include all or a substantial portion of the database
272 | contents in a database in which You have Sui Generis Database
273 | Rights, then the database in which You have Sui Generis Database
274 | Rights (but not its individual contents) is Adapted Material; and
275 |
276 | c. You must comply with the conditions in Section 3(a) if You Share
277 | all or a substantial portion of the contents of the database.
278 |
279 | For the avoidance of doubt, this Section 4 supplements and does not
280 | replace Your obligations under this Public License where the Licensed
281 | Rights include other Copyright and Similar Rights.
282 |
283 |
284 | Section 5 -- Disclaimer of Warranties and Limitation of Liability.
285 |
286 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
287 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
288 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
289 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
290 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
291 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
292 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
293 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
294 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
295 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
296 |
297 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
298 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
299 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
300 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
301 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
302 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
303 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
304 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
305 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
306 |
307 | c. The disclaimer of warranties and limitation of liability provided
308 | above shall be interpreted in a manner that, to the extent
309 | possible, most closely approximates an absolute disclaimer and
310 | waiver of all liability.
311 |
312 |
313 | Section 6 -- Term and Termination.
314 |
315 | a. This Public License applies for the term of the Copyright and
316 | Similar Rights licensed here. However, if You fail to comply with
317 | this Public License, then Your rights under this Public License
318 | terminate automatically.
319 |
320 | b. Where Your right to use the Licensed Material has terminated under
321 | Section 6(a), it reinstates:
322 |
323 | 1. automatically as of the date the violation is cured, provided
324 | it is cured within 30 days of Your discovery of the
325 | violation; or
326 |
327 | 2. upon express reinstatement by the Licensor.
328 |
329 | For the avoidance of doubt, this Section 6(b) does not affect any
330 | right the Licensor may have to seek remedies for Your violations
331 | of this Public License.
332 |
333 | c. For the avoidance of doubt, the Licensor may also offer the
334 | Licensed Material under separate terms or conditions or stop
335 | distributing the Licensed Material at any time; however, doing so
336 | will not terminate this Public License.
337 |
338 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
339 | License.
340 |
341 |
342 | Section 7 -- Other Terms and Conditions.
343 |
344 | a. The Licensor shall not be bound by any additional or different
345 | terms or conditions communicated by You unless expressly agreed.
346 |
347 | b. Any arrangements, understandings, or agreements regarding the
348 | Licensed Material not stated herein are separate from and
349 | independent of the terms and conditions of this Public License.
350 |
351 |
352 | Section 8 -- Interpretation.
353 |
354 | a. For the avoidance of doubt, this Public License does not, and
355 | shall not be interpreted to, reduce, limit, restrict, or impose
356 | conditions on any use of the Licensed Material that could lawfully
357 | be made without permission under this Public License.
358 |
359 | b. To the extent possible, if any provision of this Public License is
360 | deemed unenforceable, it shall be automatically reformed to the
361 | minimum extent necessary to make it enforceable. If the provision
362 | cannot be reformed, it shall be severed from this Public License
363 | without affecting the enforceability of the remaining terms and
364 | conditions.
365 |
366 | c. No term or condition of this Public License will be waived and no
367 | failure to comply consented to unless expressly agreed to by the
368 | Licensor.
369 |
370 | d. Nothing in this Public License constitutes or may be interpreted
371 | as a limitation upon, or waiver of, any privileges and immunities
372 | that apply to the Licensor or You, including from the legal
373 | processes of any jurisdiction or authority.
374 |
375 |
376 | =======================================================================
377 |
378 | Creative Commons is not a party to its public
379 | licenses. Notwithstanding, Creative Commons may elect to apply one of
380 | its public licenses to material it publishes and in those instances
381 | will be considered the “Licensor.” The text of the Creative Commons
382 | public licenses is dedicated to the public domain under the CC0 Public
383 | Domain Dedication. Except for the limited purpose of indicating that
384 | material is shared under a Creative Commons public license or as
385 | otherwise permitted by the Creative Commons policies published at
386 | creativecommons.org/policies, Creative Commons does not authorize the
387 | use of the trademark "Creative Commons" or any other trademark or logo
388 | of Creative Commons without its prior written consent including,
389 | without limitation, in connection with any unauthorized modifications
390 | to any of its public licenses or any other arrangements,
391 | understandings, or agreements concerning use of licensed material. For
392 | the avoidance of doubt, this paragraph does not form part of the
393 | public licenses.
394 |
395 | Creative Commons may be contacted at creativecommons.org.
396 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 👋 ChatGPT for Bot 使用文档
2 |
3 | ## **V3 版本文档编写中**
4 |
5 | 当前正在浏览的是 V2 版本的使用文档, V3 版本的文档正在编写中。
6 |
7 | ## Overview
8 |
9 | ChatGPT for Bot 是一个支持多平台、多语言模型的聊天机器人项目。
10 |
11 | 它可以让你在聊天平台上对接语言模型,实现和语言模型的直接对话。
12 |
13 | ##
14 |
15 | 该部分完整配置如下:
6 |
7 | ```toml
8 | [trigger]
9 | # 配置机器人要如何响应
10 |
11 | # 全局聊天前缀,在群聊和私聊中,符合下面的前缀【才】会响应,可以自己增减
12 | prefix = [ "gpt",]
13 |
14 | # 私聊聊天前缀,在私聊中,符合下面的前缀【也】会响应,可以自己增减
15 | prefix_friend = [ "ask",]
16 |
17 | # 群聊聊天前缀,在群聊中,符合下面的前缀【也】会响应,可以自己增减
18 | prefix_group = [ "ai",]
19 |
20 | # 满足以下正则表达式则忽略此条消息
21 | ignore_regex = []
22 |
23 | # 直接和指定的 AI 对话(不切换AI)
24 | # 此处的前缀是在上面的前缀之后的
25 | # 例:
26 | # prefix = [ "ask" ]
27 | # prefix_ai = { "bing-c" = ["bing"] }
28 | # 则用户发送: ask bing 你好
29 | # 则会直接把 “你好” 两个字发给 New Bing AI
30 | prefix_ai = { "chatgpt-web" = ["gpt"], "bing-c" = ["bing"] }
31 |
32 | # AI 画图的前缀
33 | # 需要有 OpenAI 的 api_key 才能使用
34 | prefix_image = ["画", "看"]
35 | # 配置群里如何让机器人响应,"at" 表示需要群里 @ 机器人,"mention" 表示 @ 或者以机器人名字开头都可以,"none" 表示不需要
36 | require_mention = "at"
37 |
38 | # 重置会话的命令
39 | reset_command = [ "重置会话",]
40 |
41 | # 回滚会话的命令
42 | rollback_command = [ "回滚会话",]
43 |
44 | # 切换模型的命令
45 | switch_model = "切换模型 (.+)"
46 |
47 | # 允许普通用户切换的模型
48 | allowed_models = ["gpt-3.5-turbo", "gpt-3.5-turbo-0301", "text-davinci-002-render-sha", "text-davinci-002-render-paid"]
49 |
50 | # 允许普通用户切换AI
51 | allow_switching_ai = true
52 | ```
53 |
54 |
[trigger]
163 |
164 | # 切换模型的命令
165 | switch_model = "切换模型 (.+)"
166 |
167 | # 允许普通用户切换的模型
168 | allowed_models = ["gpt-3.5-turbo", "gpt-3.5-turbo-0301", "text-davinci-002-render-sha", "text-davinci-002-render-paid"]
169 |
170 | # 允许普通用户切换AI
171 | allow_switching_ai = true
172 |
173 |
174 |
175 |
176 | ## 其他命令
177 |
178 | ```toml
179 | [trigger]
180 |
181 | # 重置会话的命令
182 | reset_command = [ "重置会话",]
183 |
184 | # 回滚会话的命令
185 | rollback_command = [ "回滚会话",]
186 | ```
187 |
188 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/dui-jie-liao-tian-ping-tai/README.md:
--------------------------------------------------------------------------------
1 | # 📪 对接聊天平台
2 |
3 | 我们现在支持同时接入多种平台,你只需要在配置文件 `config.cfg` 加入你想要接入的平台的配置,就可以开启相关功能。
4 |
5 | ## 对接 QQ
6 |
7 | 目前支持两种对接 QQ 的协议,分别为 Mirai 和 OneBot。
8 |
9 | 你可以选择你喜欢的协议进行对接。
10 |
11 | ### 对接 Mirai
12 |
13 | {% content-ref url="dui-jie-mirai.md" %}
14 | [dui-jie-mirai.md](dui-jie-mirai.md)
15 | {% endcontent-ref %}
16 |
17 | ### 对接 OneBot (go-cqhttp)
18 |
19 | {% content-ref url="dui-jie-onebot-gocqhttp.md" %}
20 | [dui-jie-onebot-gocqhttp.md](dui-jie-onebot-gocqhttp.md)
21 | {% endcontent-ref %}
22 |
23 | ## 对接企业微信
24 |
25 | {% content-ref url="dui-jie-qi-ye-wei-xin.md" %}
26 | [dui-jie-qi-ye-wei-xin.md](dui-jie-qi-ye-wei-xin.md)
27 | {% endcontent-ref %}
28 |
29 | ## 对接 Telegram
30 |
31 | {% content-ref url="dui-jie-telegram.md" %}
32 | [dui-jie-telegram.md](dui-jie-telegram.md)
33 | {% endcontent-ref %}
34 |
35 | ## 对接 Discord
36 |
37 | {% content-ref url="dui-jie-discord.md" %}
38 | [dui-jie-discord.md](dui-jie-discord.md)
39 | {% endcontent-ref %}
40 |
41 | ### 开启 HTTP API 服务
42 |
43 | 开启 HTTP 服务后,你可以通过本项目提供的 HTTP API 来接入自己开发的程序,你可以参考下面这个项目来了解详细用法:
44 |
45 | #### 通过 HTTP 服务接入个人微信
46 |
47 | {% content-ref url="dui-jie-ge-ren-wei-xin.md" %}
48 | [dui-jie-ge-ren-wei-xin.md](dui-jie-ge-ren-wei-xin.md)
49 | {% endcontent-ref %}
50 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/dui-jie-liao-tian-ping-tai/dui-jie-discord.md:
--------------------------------------------------------------------------------
1 | # 🎧 对接 Discord
2 |
3 | 将 `config.cfg` 中的 `[mirai]` 块删除,然后加入以下配置:
4 |
5 | ```
6 | [discord]
7 | # 这里填写你 Discord 机器人的 token
8 | bot_token = "xxx"
9 | ```
10 |
11 | 就可以在 Discord 中和 AI 聊天了!
12 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/dui-jie-liao-tian-ping-tai/dui-jie-ge-ren-wei-xin.md:
--------------------------------------------------------------------------------
1 | # 😁 对接个人微信
2 |
3 | 目前的个人微信支持由 [lcjqyml/wechatbot](https://github.com/lcjqyml/wechatbot) 项目提供,基于本项目的 HTTP API 功能实现,
4 |
5 | ## 0x01 开启 HTTP API 服务
6 |
7 | 在 `config.cfg` 中加入以下配置后,将额外提供 HTTP API 支持。
8 |
9 | {% hint style="info" %}
10 | 我们建议将本项目部署在国外服务器上,减少网络错误发生的概率。
11 | {% endhint %}
12 |
13 | ```toml
14 | [http]
15 | host = "0.0.0.0"
16 | # 填写提供服务的端口
17 | port = 8234
18 | # 是否开启调试
19 | debug = false
20 | ```
21 |
22 | ### 注意事项
23 |
24 | Docker 用户别忘了将此处配置中的 `port` 的端口号映射出来,以便被访问到。
25 |
26 | 举个**例子**(只是例子,不代表完全一样,别直接抄):
27 |
28 | version: '3.4'
29 | services:
30 | chatgpt:
31 | image: lss233/chatgpt-mirai-qq-bot:browser-version
32 | restart: always
33 | environment:
34 | LANG: 'C.UTF-8'
35 | ports:
36 | - 8234:8234 # <----- 主要就是加这一项
37 | volumes:
38 | - ./config.cfg:/app/config.cfg
39 | - ./data:/app/data
40 | - ./presets:/app/presets
41 |
42 |
43 | ## 0x02 部署 [lcjqyml](https://github.com/lcjqyml)/[**wechatbot**](https://github.com/lcjqyml/wechatbot)
44 |
45 | {% hint style="info" %}
46 | 我们建议将这个项目部署在国内的服务器上,降低微信被封号的概率。
47 | {% endhint %}
48 |
49 | {% hint style="info" %}
50 | 这是一个由第三方提供的程序,教程可能会随着项目的发展而过时。
51 |
52 | 建议参考原项目文档进行部署:[https://github.com/lcjqyml/wechatbot](https://github.com/lcjqyml/wechatbot)
53 | {% endhint %}
54 |
55 | 此处以 Ubuntu 20.04 系统为例,在安装 Docker 后,执行以下命令:
56 |
57 | ```bash
58 | docker run -e CHATBOT_PROXY="http://127.0.0.1:8234" lcjqyml/wechatbot:latest
59 | ```
60 |
61 | 将 `127.0.0.1` 换成你部署的 ChatGPT for Bot 项目服务器的 IP,然后按下回车启动,然后扫码登录即可。
62 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/dui-jie-liao-tian-ping-tai/dui-jie-mirai.md:
--------------------------------------------------------------------------------
1 | # 🦠 对接 Mirai
2 |
3 | Mirai 协议是我们最初支持的协议。
4 |
5 | 我们支持 **反向 Websocket 连接**和**正向 Websocket + HTTP 连接**两种方式通过 Mirai 接入 QQ。
6 |
7 | ## 反向 Websocket 连接时的设置
8 |
9 | 如果你要使用 Mirai 来连接 QQ,那么需要你在配置文件中这么写:
10 |
11 | ```toml
12 | [mirai]
13 | # Mirai 相关设置
14 |
15 | qq = 请填写机器人的 QQ 号
16 |
17 | manager_qq = 请修改为机器人管理员的QQ号(你自己的 QQ 号)
18 |
19 | # 以下是和 Mirai 连接所需要的相关设置
20 |
21 | # 如果你是小白,或者使用我们提供的快速部署方案,可以不用修改这里的设置
22 | # mirai-http-api 中的 verifyKey
23 | api_key = "1234567890"
24 | # mirai api http 反向连接模式
25 | reverse_ws_host = "0.0.0.0"
26 | reverse_ws_port = 8554
27 | ```
28 |
29 | 在这段配置中,我们使用了 **反向 Websocket** 连接到 Mirai。
30 |
31 | 在这个模式下,本程序启动后会等待 Mirai 主动连接到本程序。
32 |
33 | 这样你就可以把本程序放在云服务器上,而 Mirai 可以放在自己的电脑上,从而避免触发 QQ 的异地登录保护或者掉线问题。
34 |
35 | ### mirai-api-http 中的设置
36 |
37 | 你需要保证这里的配置和 mirai-api-http 中的设置是一致的,我们的程序才能接入 Mirai。
38 |
39 | mirai-api-http 的配置文件存放于 `mirai/config/net.mamoe.mirai-api-http`,你可以用记事本打开它。
40 |
41 | 以我们上面的配置为例, mirai-api-http 的配置文件应该改成这样:
42 |
43 | ```yaml
44 | adapters:
45 | - reverse-ws
46 |
47 | verifyKey: 1234567890
48 | singleMode: false
49 | cacheSize: 4096
50 | adapterSettings:
51 | reverse-ws:
52 | ## 远端 websocket server 地址配置
53 | destinations:
54 | - host: localhost
55 | port: 8554
56 | path: /
57 | protocol: ws
58 |
59 | ```
60 |
61 | 需要注意的是:
62 |
63 | * `verifyKey` 的 `1234567890` 要和上面的 `api_key` 保持一致
64 | * `port` 的 `8554` 要和上面的 `reverse_ws_port` 保持一致
65 | * `host` 的 `localhost` 填写本程序的 IP 地址。这取决于你的部署方式,
66 |
67 | 如果是 Docker(或者 Linux 一键部署),那你要改成 `chatgpt` 。
68 |
69 | 如果是 Windows,那就保持现在这样,不需要再改了。
70 |
71 | ## 正向 Websocket + HTTP 方式连接
72 |
73 | 你也可以使用正向 Websocket + HTTP 的方式来连接到 Mirai。
74 |
75 | 在这个模式下, 本程序启动成功后会主动连接到 Mirai。
76 |
77 | 如果你要这么做,那就注释掉 `reverse_ws`开头的两行配置,然后加入另外两行配置,就像这样:
78 |
79 | ```toml
80 | # mirai api http 反向连接模式
81 | # reverse_ws_host = "0.0.0.0"
82 | # reverse_ws_port = 8554
83 | # mirai api http 正向连接模式
84 | # 使用此模式时需注释上面的反向连接模式配置
85 | http_url = "http://localhost:8080"
86 | ws_url = "http://localhost:8080"
87 | ```
88 |
89 | 此处的 `localhost` 是 Mirai 程序的 IP 地址。在 Docker 中,你可以填容器名,在 Windows 同一台机器中,那就填 `localhost`。
90 |
91 | 通常来说,使用正向连接模式没有什么优点,因此我们觉得你没有必要对这里的配置进行修改。
92 |
93 | ### mirai-api-http 中的设置
94 |
95 | ```yaml
96 | adapters:
97 | - http
98 | - ws
99 | verifyKey: 1234567890
100 | singleMode: false
101 | cacheSize: 4096
102 | persistenceFactory: 'built-in'
103 | adapterSettings:
104 | ## HTTP 服务的主机, 端口和跨域设置
105 | http:
106 | host: "0.0.0.0"
107 | port: 8080
108 | cors: ["*"]
109 |
110 | ## Websocket 服务的主机, 端口和事件同步ID设置
111 | ws:
112 | host: "0.0.0.0"
113 | port: 8080
114 | reservedSyncId: -1
115 | ```
116 |
117 | 需要注意的是:
118 |
119 | * `verifyKey` 的 `1234567890` 要和上面的 `api_key` 保持一致
120 | * `port` 的 `8080`要和上面的 `url` 冒号后面的数字保持一致
121 |
122 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/dui-jie-liao-tian-ping-tai/dui-jie-onebot-gocqhttp.md:
--------------------------------------------------------------------------------
1 | # 🙇 对接 OneBot (go-cqhttp)
2 |
3 | OneBot 协议可以用于对接 go-cqhttp 等机器人框架。
4 |
5 | 如果你要使用 OneBot 协议,那么你就将 `config.cfg` 中的 `[mirai]` 块删除,然后加入以下配置:
6 |
7 | ```properties
8 | [onebot]
9 | qq=请修改为你机器人的QQ号
10 | manager_qq = 请修改为机器人管理员的QQ号
11 |
12 | reverse_ws_host = "0.0.0.0"
13 | reverse_ws_port = 8566
14 | ```
15 |
16 | 就可以使用 go-cqhttp 或者其他支持 OneBot 协议的程序和 ChatGPT 聊天!
17 |
18 | ## go-cqhttp 的设置教程
19 |
20 | 如果你在搭建过程中遇到问题,可以看:
21 |
22 | [gocqhttp-qi-dong-guo-cheng-zhong-de-chang-jian-wen-ti.md](../../chang-jian-wen-ti-jie-da/gocqhttp-qi-dong-guo-cheng-zhong-de-chang-jian-wen-ti.md "mention")
23 |
24 | OneBot 是一个典型的支持 OneBot 协议的平台。
25 |
26 | 如果你在使用 go-cqhttp,那就可以不需要理会 Mirai 了。
27 |
28 | {% hint style="info" %}
29 | 如果你通过 GO-CQHTTP 的 Linux 部署脚本来安装的这个项目,那么你可以跳过这一段教程。
30 | {% endhint %}
31 |
32 | ### 1. 下载 go-cqhttp
33 |
34 | 你可以在这里下载最新的 go-cqhttp:[https://github.com/Mrs4s/go-cqhttp/releases](https://github.com/Mrs4s/go-cqhttp/releases)
35 |
36 | ### 2. 初始化 go-cqhttp
37 |
38 | 解压并启动 go-cqhttp,选 `3` 后回车,退出程序。
39 |
40 | version: '3.4'
38 | services:
39 | chatgpt:
40 | image: lss233/chatgpt-mirai-qq-bot:browser-version
41 | restart: always
42 | environment:
43 | LANG: 'C.UTF-8'
44 | ports:
45 | - 5001:5001 # <----- 主要就是加这一项
46 | volumes:
47 | - ./config.cfg:/app/config.cfg
48 | - ./data:/app/data
49 | - ./presets:/app/presets
50 |
51 |
52 | 修改完这个文件后,还要执行:`docker-compose up -d` 来更新容器编排,确保端口映射成功。
53 |
54 | 当你完成上面的所有操作后,可以在自己的浏览器中打开:`http://你的服务器IP:5001` 看看有没有内容。如果浏览器提示打开失败,说明你的端口映射没有成功。
55 |
56 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/dui-jie-liao-tian-ping-tai/dui-jie-telegram.md:
--------------------------------------------------------------------------------
1 | # 🛫 对接 Telegram
2 |
3 | 加入以下配置:
4 |
5 | ```toml
6 | [telegram]
7 | # 这个 token 是找 BotFather 要的
8 | bot_token = "你的 Bot token"
9 | # 如果部署在国内,就填这个设置代理
10 | # 不填的话就会读取系统的代理设置
11 | proxy = "http://localhost:1080"
12 | # 管理员的 chat id
13 | manager_chat = 1234567890
14 | ```
15 |
16 | 就可以使用 Telegram 机器人和 AI 聊天!
17 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/hui-fu-nei-rong/README.md:
--------------------------------------------------------------------------------
1 | # 💬 回复内容
2 |
3 | 该部分完整配置参考:
4 |
5 | [response]
10 |
11 | mode = "mixed"
12 |
13 | buffer_delay = 15
14 |
15 | default_ai = "chatgpt-web"
16 | # 匹配指令成功但没有对话内容时发送的消息
17 | placeholder = "您好!我是 Assistant,一个由 OpenAI 训练的大型语言模型。我不是真正的人,而是一个计算机程序,可以通过文本聊天来帮助您解决问题。如果您有任何问题,请随时告诉我,我将尽力回答。\n如果您需要重置我们的会话,请回复`重置会话`。"
18 |
19 | # 发生错误时要发送的消息
20 | error_format = "出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚会话” 来回溯到上一条对话,你上一条说的我就当作没看见。\n{exc}"
21 |
22 | # 发生网络错误时发送的消息,请注意可以插入 {exc} 作为异常占位符
23 | error_network_failure = "网络故障!连接 OpenAI 服务器失败,我需要更好的网络才能服务!\n{exc}"
24 |
25 | # OpenAI 账号登录失效时的提示
26 | error_session_authenciate_failed = "身份验证失败!无法登录至 ChatGPT 服务器,请检查账号信息是否正确!\n{exc}"
27 |
28 | # OpenAI 提示 Too many requests(太多请求) 时的提示
29 | error_request_too_many = "糟糕!当前收到的请求太多了,我需要一段时间冷静冷静。你可以选择“重置会话”,或者过一会儿再来找我!\n{exc}"
30 |
31 | # 服务器提示 Server overloaded(过载) 时的提示
32 | error_server_overloaded = "抱歉,当前服务器压力有点大,请稍后再找我吧!"
33 |
34 | # 重置会话时发送的消息
35 | reset = "会话已重置。"
36 |
37 | # 回滚成功时发送的消息
38 | rollback_success = "已回滚至上一条对话,你刚刚发的我就忘记啦!"
39 |
40 | # 回滚失败时发送的消息
41 | rollback_fail = "回滚失败,没有更早的记录了!"
42 |
43 | quote = true
44 |
45 | timeout = 30.0
46 |
47 | timeout_format = "我还在思考中,请再等一下~"
48 |
49 | max_timeout = 600
50 |
51 | cancel_wait_too_long = "啊哦,这个问题有点难,让我想了好久也没想明白。试试换个问法?"
52 |
53 | max_queue_size = 10
54 |
55 | queue_full = "抱歉!我现在要回复的人有点多,暂时没有办法接收新的消息了,请过会儿再给我发吧!"
56 |
57 | queued_notice_size = 3
58 |
59 | queued_notice = "消息已收到!当前我还有{queue_size}条消息要回复,请您稍等。"
60 |
61 |
62 | [baiducloud]
6 |
7 | # 是否启动百度云内容安全审核
8 | check = false
9 |
10 | # 百度云API_KEY 24位英文数字字符串
11 | baidu_api_key = ""
12 |
13 | # 百度云SECRET_KEY 32位的英文数字字符串
14 | baidu_secret_key =""
15 |
16 | # 不合规消息自定义返回
17 | prompt_message = "[百度云]请珍惜机器人,当前返回内容不合规"
18 |
19 |
20 | 你可以在这里注册百度云审核服务:
21 |
22 | {% embed url="http://console.bce.baidu.com/ai/#/ai/antiporn/overview/index" %}
23 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/jie-ru-ai-ping-tai/README.md:
--------------------------------------------------------------------------------
1 | # 📎 接入 AI 平台
2 |
3 | 我们的一个程序实例可以接入多个 AI 平台。
4 |
5 | 我们所有的 AI 平台都支持多账号登录,你可以配置多种不同的 AI 平台,然后通过指令来进行切换。
6 |
7 | 以下面 OpenAI 的配置为例,添加多账号的写法如下:
8 |
9 | ```toml
10 | # OpenAI 相关设置
11 | [openai] # 这一行必写
12 |
13 | # 第 1 个 OpenAI 账号的登录信息
14 | [[openai.accounts]] # 这一行必须跟在 [openai] 的后面
15 | # 里面是一些设置
16 |
17 | # 第 2 个 OpenAI 账号的登录信息
18 | [[openai.accounts]]
19 | # 里面是一些设置
20 |
21 | # 第 3 个 OpenAI 账号的登录信息
22 | [[openai.accounts]]
23 | # 里面是一些设置
24 | ```
25 |
26 | ### 接入 OpenAI
27 |
28 | {% content-ref url="jie-ru-openai-de-chatgpt.md" %}
29 | [jie-ru-openai-de-chatgpt.md](jie-ru-openai-de-chatgpt.md)
30 | {% endcontent-ref %}
31 |
32 | ### 接入 New Bing (Sydney)
33 |
34 | {% content-ref url="jie-ru-new-bing-sydney.md" %}
35 | [jie-ru-new-bing-sydney.md](jie-ru-new-bing-sydney.md)
36 | {% endcontent-ref %}
37 |
38 | ### 接入 Google Bard
39 |
40 | {% content-ref url="jie-ru-google-bard.md" %}
41 | [jie-ru-google-bard.md](jie-ru-google-bard.md)
42 | {% endcontent-ref %}
43 |
44 | ### 接入 ChatGLM
45 |
46 | {% content-ref url="jie-ru-chatglm.md" %}
47 | [jie-ru-chatglm.md](jie-ru-chatglm.md)
48 | {% endcontent-ref %}
49 |
50 | ### 接入 文心一言
51 |
52 | {% content-ref url="jie-ru-wen-xin-yi-yan.md" %}
53 | [jie-ru-wen-xin-yi-yan.md](jie-ru-wen-xin-yi-yan.md)
54 | {% endcontent-ref %}
55 |
56 | ### 接入 Poe.com
57 |
58 | {% content-ref url="jie-ru-poe.com.md" %}
59 | [jie-ru-poe.com.md](jie-ru-poe.com.md)
60 | {% endcontent-ref %}
61 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/jie-ru-ai-ping-tai/jie-ru-chatglm.md:
--------------------------------------------------------------------------------
1 | # 🧑🎓 接入 ChatGLM
2 |
3 | ChatGLM 是由清华开源的离线语言模型,你可以用自己的服务器来运行语言模型。
4 |
5 | ChatGLM 的设置开始于一行 `[chatglm]` ,随后每个账号的设置开始于一行 `[[chatglm.accounts]]`。
6 |
7 | **API 访问**
8 |
9 | 我们使用 ChatGLM 项目中 `api.py` 所提供的 Web API 来访问 ChatGLM。
10 |
11 | ```toml
12 | [[chatglm.accounts]]
13 | # ChatGLM 的接口地址,搭建方法见下
14 | api_endpoint = "http://127.0.0.1:8000"
15 | # 最大记忆的对话轮数
16 | max_turns=10
17 | # 请求超时时间(单位:秒)
18 | timeout=360
19 | ```
20 |
21 | **API 搭建方法**
22 |
23 | ```bash
24 | # 下载项目
25 | git clone https://github.com/THUDM/ChatGLM-6B.git
26 | cd ChatGLM-6B
27 | # 安装依赖
28 | pip install -r requirements.txt
29 | pip install fastapi uvicorn
30 | # 启动
31 | python api.py
32 | ```
33 |
--------------------------------------------------------------------------------
/pei-zhi-wen-jian-jiao-cheng/jie-ru-ai-ping-tai/jie-ru-claude.md:
--------------------------------------------------------------------------------
1 | # 🥸 接入 Claude
2 |
3 | Claude 是由前 OpenAI 成员创立的 Anthropic 公司研发的一款 AI。
4 |
5 | 目前有两种使用 Claude 的方法:通过 Slack 或者 通过 Poe.com,此处介绍通过 Slack 的方法。
6 |
7 | ### 0x01 准备工作
8 |
9 | 为了在 Slack 中使用 Claude,你需要有一个 Slack 账号、一个邀请了 Claude 的频道,并且你可以正常和 Claude 进行交流。
10 |
11 | 如果你没有的话,可以参考这个教程来准备:
12 |
13 | {% embed url="https://juejin.cn/post/7221333266594676795" %}
14 |
15 | ### 0x02 获取 access\_token
16 |
17 | 点击下面这个链接,安装一个 App 到你的工作区中。
18 |
19 | {% embed url="https://chatgpt-proxy.lss233.com/claude-in-slack/login" %}
20 |
21 | 安装成功后,页面中会出现一串代码,记下它,这是你稍后会用到的 `access_token` 。
22 |
23 | ### 0x03 获取 channel\_id
24 |
25 | 按照以下步骤获取 `channel_id`:
26 |
27 |