From 3993d292f4cc095174fee7ca43931b7d0c063aaf Mon Sep 17 00:00:00 2001 From: wood chen <95951386+woodchen-ink@users.noreply.github.com> Date: Sun, 28 Jan 2024 00:43:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E5=8F=A6=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 11 + .gitignore | 5 + .goreleaser.yaml | 22 + Dockerfile | 54 +- LICENSE | 695 +--------------- code/.gitignore | 2 - code/config.example.yaml | 38 - code/config.yaml | 38 - code/go.mod | 59 -- code/go.sum | 600 -------------- code/handlers/card_clear_action.go | 43 - code/handlers/card_common_action.go | 43 - code/handlers/card_pic_action.go | 92 --- code/handlers/card_role_action.go | 75 -- code/handlers/common.go | 100 --- code/handlers/event_common_action.go | 154 ---- code/handlers/event_msg_action.go | 157 ---- code/handlers/handler.go | 136 ---- code/handlers/init.go | 71 -- code/handlers/msg.go | 764 ------------------ code/initialization/config.go | 181 ----- code/initialization/gin.go | 71 -- code/initialization/lark_client.go | 15 - code/initialization/roles_load.go | 76 -- code/main.go | 94 --- code/role_list.yaml | 151 ---- code/services/accesscontrol/access_control.go | 66 -- code/services/chatgpt/check.go | 33 - code/services/chatgpt/gpt3.go | 90 --- code/services/chatgpt/gpt3_test.go | 62 -- code/services/chatgpt/tokenizer.go | 20 - code/services/chatgpt/tokenizer_test.go | 50 -- code/services/loadbalancer/loadbalancer.go | 106 --- code/services/msgCache.go | 37 - code/services/openai/audio.go | 66 -- code/services/openai/billing.go | 63 -- code/services/openai/common.go | 250 ------ code/services/openai/gpt3.go | 69 -- code/services/openai/gpt3_test.go | 120 --- code/services/openai/picture.go | 297 ------- code/services/openai/test_file/img.png | Bin 13697 -> 0 bytes code/services/openai/test_file/test.jpg | Bin 84666 -> 0 bytes code/services/openai/test_file/test.wav | Bin 40398 -> 0 bytes code/services/sessionCache.go | 153 ---- code/utils/audio/ogg.go | 61 -- code/utils/audio/wav.go | 107 --- code/utils/commonUtils.go | 12 - code/utils/logUtils.go | 24 - code/utils/strings.go | 38 - code/utils/strings_test.go | 109 --- commands/custom.go | 76 ++ commands/draw.go | 69 ++ commands/message.go | 168 ++++ commands/model.go | 60 ++ commands/offline.go | 32 + commands/online.go | 32 + commands/ping.go | 24 + commands/reset.go | 36 + commands/utils.go | 99 +++ config/config.go | 63 ++ docker-compose.yaml | 42 - docker-compose.yml | 14 + entrypoint.sh | 89 ++ go.mod | 119 +++ go.sum | 444 ++++++++++ logs.go | 64 ++ main.go | 202 +++++ s.yaml | 58 -- server.go | 184 +++++ version.go | 4 + 70 files changed, 1878 insertions(+), 5581 deletions(-) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 .goreleaser.yaml delete mode 100644 code/.gitignore delete mode 100644 code/config.example.yaml delete mode 100644 code/config.yaml delete mode 100644 code/go.mod delete mode 100644 code/go.sum delete mode 100644 code/handlers/card_clear_action.go delete mode 100644 code/handlers/card_common_action.go delete mode 100644 code/handlers/card_pic_action.go delete mode 100644 code/handlers/card_role_action.go delete mode 100644 code/handlers/common.go delete mode 100644 code/handlers/event_common_action.go delete mode 100644 code/handlers/event_msg_action.go delete mode 100644 code/handlers/handler.go delete mode 100644 code/handlers/init.go delete mode 100644 code/handlers/msg.go delete mode 100644 code/initialization/config.go delete mode 100644 code/initialization/gin.go delete mode 100644 code/initialization/lark_client.go delete mode 100644 code/initialization/roles_load.go delete mode 100644 code/main.go delete mode 100644 code/role_list.yaml delete mode 100644 code/services/accesscontrol/access_control.go delete mode 100644 code/services/chatgpt/check.go delete mode 100644 code/services/chatgpt/gpt3.go delete mode 100644 code/services/chatgpt/gpt3_test.go delete mode 100644 code/services/chatgpt/tokenizer.go delete mode 100644 code/services/chatgpt/tokenizer_test.go delete mode 100644 code/services/loadbalancer/loadbalancer.go delete mode 100644 code/services/msgCache.go delete mode 100644 code/services/openai/audio.go delete mode 100644 code/services/openai/billing.go delete mode 100644 code/services/openai/common.go delete mode 100644 code/services/openai/gpt3.go delete mode 100644 code/services/openai/gpt3_test.go delete mode 100644 code/services/openai/picture.go delete mode 100644 code/services/openai/test_file/img.png delete mode 100644 code/services/openai/test_file/test.jpg delete mode 100644 code/services/openai/test_file/test.wav delete mode 100644 code/services/sessionCache.go delete mode 100644 code/utils/audio/ogg.go delete mode 100644 code/utils/audio/wav.go delete mode 100644 code/utils/commonUtils.go delete mode 100644 code/utils/logUtils.go delete mode 100644 code/utils/strings.go delete mode 100644 code/utils/strings_test.go create mode 100644 commands/custom.go create mode 100644 commands/draw.go create mode 100644 commands/message.go create mode 100644 commands/model.go create mode 100644 commands/offline.go create mode 100644 commands/online.go create mode 100644 commands/ping.go create mode 100644 commands/reset.go create mode 100644 commands/utils.go create mode 100644 config/config.go delete mode 100644 docker-compose.yaml create mode 100644 docker-compose.yml create mode 100644 entrypoint.sh create mode 100644 go.mod create mode 100644 go.sum create mode 100644 logs.go create mode 100644 main.go delete mode 100644 s.yaml create mode 100644 server.go create mode 100644 version.go diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..8e81dc1 --- /dev/null +++ b/.env.example @@ -0,0 +1,11 @@ +APP_ID= +APP_SECRET= + +OPENAI_API_KEY= + +OPENAI_API_SERVER= + +OPENAI_API_TYPE= +OPENAI_AZURE_RESOURCE= +OPENAI_AZURE_DEPLOYMENT= +OPENAI_AZURE_API_VERSION= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3b0887d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +tmp/ +gzchatgpt +main +chatgpt-for-chatbot-feishu +.env diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..e42e89a --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,22 @@ +env: + - GO111MODULE=on + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + # - windows + goarch: + - amd64 + - arm64 + # - arm + # - "386" + goarm: + - "7" + mod_timestamp: "{{ .CommitTimestamp }}" + flags: + - -trimpath + ldflags: + - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=go-zoox diff --git a/Dockerfile b/Dockerfile index b154ee3..6e4e3a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,46 @@ -FROM golang:1.18 as golang - -ENV GO111MODULE=on \ - CGO_ENABLED=1 \ - GOPROXY=https://goproxy.cn,direct +# Builder +FROM --platform=$BUILDPLATFORM whatwewant/builder-go:v1.20-1 as builder WORKDIR /build -ADD /code /build -RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-w -s' -o feishu_chatgpt +COPY go.mod ./ -FROM alpine:latest +COPY go.sum ./ -WORKDIR /app +RUN go mod download -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"] +COPY . . + +ARG TARGETARCH + +RUN CGO_ENABLED=0 \ + GOOS=linux \ + GOARCH=$TARGETARCH \ + go build \ + -trimpath \ + -ldflags '-w -s -buildid=' \ + -v -o chatgpt-for-chatbot-feishu + +# Server +FROM whatwewant/go:v1.20-1 +# FROM whatwewant/zmicro:v1 + +LABEL MAINTAINER="Zero" + +LABEL org.opencontainers.image.source="https://github.com/go-zoox/chatgpt-for-chatbot-feishu" + +ARG VERSION=latest + +ENV MODE=production + +COPY --from=builder /build/chatgpt-for-chatbot-feishu /bin + +ENV VERSION=${VERSION} + +RUN zmicro package install ngrok + +# RUN zmicro package install cpolar + +COPY ./entrypoint.sh / + +CMD /entrypoint.sh diff --git a/LICENSE b/LICENSE index f288702..d9b9bd8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,674 +1,21 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. +MIT License + +Copyright (c) 2023 go-zoox + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/code/.gitignore b/code/.gitignore deleted file mode 100644 index d742ec8..0000000 --- a/code/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/apikey_usage.json -*.pem diff --git a/code/config.example.yaml b/code/config.example.yaml deleted file mode 100644 index 8df530b..0000000 --- a/code/config.example.yaml +++ /dev/null @@ -1,38 +0,0 @@ -# 是否启用日志。 -ENABLE_LOG: true -# 飞书 -APP_ID: cli_axxx -APP_SECRET: xxx -APP_ENCRYPT_KEY: xxx -APP_VERIFICATION_TOKEN: xxx -# 请确保和飞书应用管理平台中的设置一致。这里建议直接用 Feishu-OpenAI-Stream-Chatbot 作为机器人名称,这样的话,如果你有多个bot就好区分 -BOT_NAME: xxx -# openAI key 支持负载均衡 可以填写多个key 用逗号分隔 -OPENAI_KEY: sk-xxx,sk-xxx,sk-xxx -# 服务器配置 -HTTP_PORT: 9000 -HTTPS_PORT: 9001 -USE_HTTPS: false -CERT_FILE: cert.pem -KEY_FILE: key.pem -# openai 地址, 一般不需要修改, 除非你有自己的反向代理 -API_URL: https://oapi.czl.net -# 代理设置, 例如 "http://127.0.0.1:7890", ""代表不使用代理 -HTTP_PROXY: "" -# 访问OpenAi的 普通 Http请求的超时时间,单位秒,不配置的话默认为 550 秒 -OPENAI_HTTP_CLIENT_TIMEOUT: -# openai 指定模型, 更多见 https://platform.openai.com/docs/models/model-endpoint-compatibility 中 /v1/chat/completions -OPENAI_MODEL: gpt-3.5-turbo - -# AZURE OPENAI -AZURE_ON: false # set to true to use Azure rather than OpenAI -AZURE_API_VERSION: 2023-03-15-preview # 2023-03-15-preview or 2022-12-01 refer https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#completions -AZURE_RESOURCE_NAME: xxxx # you can find in endpoint url. Usually looks like https://{RESOURCE_NAME}.openai.azure.com -AZURE_DEPLOYMENT_NAME: xxxx # usually looks like ...openai.azure.com/openai/deployments/{DEPLOYMENT_NAME}/chat/completions. -AZURE_OPENAI_TOKEN: xxxx # Authentication key. We can use Azure Active Directory Authentication(TBD). - -## 访问控制 -# 是否启用访问控制。默认不启用。 -ACCESS_CONTROL_ENABLE: false -# 每个用户每天最多问多少个问题。默认为不限制. 配置成为小于等于0表示不限制。 -ACCESS_CONTROL_MAX_COUNT_PER_USER_PER_DAY: 0 diff --git a/code/config.yaml b/code/config.yaml deleted file mode 100644 index 8df530b..0000000 --- a/code/config.yaml +++ /dev/null @@ -1,38 +0,0 @@ -# 是否启用日志。 -ENABLE_LOG: true -# 飞书 -APP_ID: cli_axxx -APP_SECRET: xxx -APP_ENCRYPT_KEY: xxx -APP_VERIFICATION_TOKEN: xxx -# 请确保和飞书应用管理平台中的设置一致。这里建议直接用 Feishu-OpenAI-Stream-Chatbot 作为机器人名称,这样的话,如果你有多个bot就好区分 -BOT_NAME: xxx -# openAI key 支持负载均衡 可以填写多个key 用逗号分隔 -OPENAI_KEY: sk-xxx,sk-xxx,sk-xxx -# 服务器配置 -HTTP_PORT: 9000 -HTTPS_PORT: 9001 -USE_HTTPS: false -CERT_FILE: cert.pem -KEY_FILE: key.pem -# openai 地址, 一般不需要修改, 除非你有自己的反向代理 -API_URL: https://oapi.czl.net -# 代理设置, 例如 "http://127.0.0.1:7890", ""代表不使用代理 -HTTP_PROXY: "" -# 访问OpenAi的 普通 Http请求的超时时间,单位秒,不配置的话默认为 550 秒 -OPENAI_HTTP_CLIENT_TIMEOUT: -# openai 指定模型, 更多见 https://platform.openai.com/docs/models/model-endpoint-compatibility 中 /v1/chat/completions -OPENAI_MODEL: gpt-3.5-turbo - -# AZURE OPENAI -AZURE_ON: false # set to true to use Azure rather than OpenAI -AZURE_API_VERSION: 2023-03-15-preview # 2023-03-15-preview or 2022-12-01 refer https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#completions -AZURE_RESOURCE_NAME: xxxx # you can find in endpoint url. Usually looks like https://{RESOURCE_NAME}.openai.azure.com -AZURE_DEPLOYMENT_NAME: xxxx # usually looks like ...openai.azure.com/openai/deployments/{DEPLOYMENT_NAME}/chat/completions. -AZURE_OPENAI_TOKEN: xxxx # Authentication key. We can use Azure Active Directory Authentication(TBD). - -## 访问控制 -# 是否启用访问控制。默认不启用。 -ACCESS_CONTROL_ENABLE: false -# 每个用户每天最多问多少个问题。默认为不限制. 配置成为小于等于0表示不限制。 -ACCESS_CONTROL_MAX_COUNT_PER_USER_PER_DAY: 0 diff --git a/code/go.mod b/code/go.mod deleted file mode 100644 index 6aba63f..0000000 --- a/code/go.mod +++ /dev/null @@ -1,59 +0,0 @@ -module start-feishubot - -go 1.18 - -require github.com/larksuite/oapi-sdk-go/v3 v3.0.14 - -require ( - github.com/duke-git/lancet/v2 v2.1.17 - github.com/gin-gonic/gin v1.8.2 - github.com/google/uuid v1.3.0 - github.com/k0kubun/pp/v3 v3.2.0 - github.com/larksuite/oapi-sdk-gin v1.0.0 - github.com/pandodao/tokenizer-go v0.2.0 - github.com/patrickmn/go-cache v2.1.0+incompatible - github.com/pion/opus v0.0.0-20230123082803-1052c3e89e58 - github.com/sashabaranov/go-openai v1.7.0 - github.com/spf13/pflag v1.0.5 - github.com/spf13/viper v1.14.0 - gopkg.in/yaml.v2 v2.4.0 -) - -require ( - github.com/dlclark/regexp2 v1.8.1 // indirect - github.com/dop251/goja v0.0.0-20230304130813-e2f543bf4b4c // indirect - github.com/dop251/goja_nodejs v0.0.0-20230226152057-060fa99b809f // indirect - github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/gin-contrib/sse v0.1.0 // indirect - github.com/go-playground/locales v0.14.1 // indirect - github.com/go-playground/universal-translator v0.18.0 // indirect - github.com/go-playground/validator/v10 v10.11.1 // indirect - github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect - github.com/goccy/go-json v0.10.0 // indirect - github.com/google/pprof v0.0.0-20230309165930-d61513b1440d // indirect - github.com/hashicorp/hcl v1.0.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/leodido/go-urn v1.2.1 // indirect - github.com/magiconair/properties v1.8.7 // indirect - github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.17 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/pelletier/go-toml v1.9.5 // indirect - github.com/pelletier/go-toml/v2 v2.0.6 // indirect - github.com/spf13/afero v1.9.3 // indirect - github.com/spf13/cast v1.5.0 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/subosito/gotenv v1.4.1 // indirect - github.com/ugorji/go/codec v1.2.8 // indirect - golang.org/x/crypto v0.5.0 // indirect - golang.org/x/exp v0.0.0-20221208152030-732eee02a75a // indirect - golang.org/x/net v0.5.0 // indirect - golang.org/x/sys v0.5.0 // indirect - golang.org/x/text v0.8.0 // indirect - google.golang.org/protobuf v1.28.1 // indirect - gopkg.in/ini.v1 v1.67.0 // indirect - gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect -) diff --git a/code/go.sum b/code/go.sum deleted file mode 100644 index 408e1cd..0000000 --- a/code/go.sum +++ /dev/null @@ -1,600 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= -github.com/dlclark/regexp2 v1.7.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= -github.com/dlclark/regexp2 v1.8.1 h1:6Lcdwya6GjPUNsBct8Lg/yRPwMhABj269AAzdGSiR+0= -github.com/dlclark/regexp2 v1.8.1/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= -github.com/dop251/goja v0.0.0-20211022113120-dc8c55024d06/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= -github.com/dop251/goja v0.0.0-20221118162653-d4bf6fde1b86/go.mod h1:yRkwfj0CBpOGre+TwBsqPV0IH0Pk73e4PXJOeNDboGs= -github.com/dop251/goja v0.0.0-20230304130813-e2f543bf4b4c h1:/utv6nmTctV6OVgfk5+O6lEMEWL+6KJy4h9NZ5fnkQQ= -github.com/dop251/goja v0.0.0-20230304130813-e2f543bf4b4c/go.mod h1:QMWlm50DNe14hD7t24KEqZuUdC9sOTy8W6XbCU1mlw4= -github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= -github.com/dop251/goja_nodejs v0.0.0-20211022123610-8dd9abb0616d/go.mod h1:DngW8aVqWbuLRMHItjPUyqdj+HWPvnQe8V8y1nDpIbM= -github.com/dop251/goja_nodejs v0.0.0-20230226152057-060fa99b809f h1:mmnNidRg3cMfcgyeNtIBSDZgjf/85lA/2pplccwSxYg= -github.com/dop251/goja_nodejs v0.0.0-20230226152057-060fa99b809f/go.mod h1:0tlktQL7yHfYEtjcRGi/eiOkbDR5XF7gyFFvbC5//E0= -github.com/duke-git/lancet/v2 v2.1.17 h1:4u9oAGgmTPTt2D7AcjjLp0ubbcaQlova8xeTIuyupDw= -github.com/duke-git/lancet/v2 v2.1.17/go.mod h1:hNcc06mV7qr+crH/0nP+rlC3TB0Q9g5OrVnO8/TGD4c= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.8.2 h1:UzKToD9/PoFj/V4rvlKqTRKnQYyz8Sc1MJlv4JHPtvY= -github.com/gin-gonic/gin v1.8.2/go.mod h1:qw5AYuDrzRTnhvusDsrov+fDIxp9Dleuu12h8nfB398= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A= -github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= -github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= -github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= -github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= -github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= -github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= -github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= -github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU= -github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= -github.com/goccy/go-json v0.10.0 h1:mXKd9Qw4NuzShiRlOXKews24ufknHO7gx30lsDyokKA= -github.com/goccy/go-json v0.10.0/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20230207041349-798e818bf904/go.mod h1:uglQLonpP8qtYCYyzA+8c/9qtqgA3qsXGYqCPKARAFg= -github.com/google/pprof v0.0.0-20230309165930-d61513b1440d h1:um9/pc7tKMINFfP1eE7Wv6PRGXlcCSJkVajF7KJw3uQ= -github.com/google/pprof v0.0.0-20230309165930-d61513b1440d/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/k0kubun/pp/v3 v3.2.0 h1:h33hNTZ9nVFNP3u2Fsgz8JXiF5JINoZfFq4SvKJwNcs= -github.com/k0kubun/pp/v3 v3.2.0/go.mod h1:ODtJQbQcIRfAD3N+theGCV1m/CBxweERz2dapdz1EwA= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/larksuite/oapi-sdk-gin v1.0.0 h1:pf2JyCSECZ2ra16JoQEgbl7PPaaOpoAEBno+Y91HFO0= -github.com/larksuite/oapi-sdk-gin v1.0.0/go.mod h1:17QKeJMEkIYBUOrUoP0HBVErfzdu7cuJ9XiXitUwe/s= -github.com/larksuite/oapi-sdk-go/v3 v3.0.14 h1:WxRAudM5eTTBZgmXs0BRp3Pq8/sxsc0lcfIl43veDJI= -github.com/larksuite/oapi-sdk-go/v3 v3.0.14/go.mod h1:FKi8vBgtkBt/xNRQUwdWvoDmsPh7/wP75Sn5IBIBQLk= -github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= -github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= -github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= -github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/pandodao/tokenizer-go v0.2.0 h1:NhfI8fGvQkDld2cZCag6NEU3pJ/ugU9zoY1R/zi9YCs= -github.com/pandodao/tokenizer-go v0.2.0/go.mod h1:t6qFbaleKxbv0KNio2XUN/mfGM5WKv4haPXDQWVDG00= -github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= -github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU= -github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= -github.com/pion/opus v0.0.0-20230123082803-1052c3e89e58 h1:wi5XffRvL9Ghx8nRAdZyAjmLV/ccnn2xJ4w6S6fELgA= -github.com/pion/opus v0.0.0-20230123082803-1052c3e89e58/go.mod h1:m8ODxkLrcNvLY6BPvOj7yLxK1wMQWA+2jqKcsrZ293U= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8= -github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= -github.com/sashabaranov/go-openai v1.7.0 h1:D1dBXoZhtf/aKNu6WFf0c7Ah2NM30PZ/3Mqly6cZ7fk= -github.com/sashabaranov/go-openai v1.7.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg= -github.com/sashabaranov/go-openai v1.9.0 h1:NoiO++IISxxJ1pRc0n7uZvMGMake0G+FJ1XPwXtprsA= -github.com/sashabaranov/go-openai v1.9.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg= -github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk= -github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= -github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= -github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.14.0 h1:Rg7d3Lo706X9tHsJMUjdiwMpHB7W8WnSVOssIY+JElU= -github.com/spf13/viper v1.14.0/go.mod h1:WT//axPky3FdvXHzGw33dNdXXXfFQqmEalje+egj8As= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= -github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= -github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= -github.com/ugorji/go/codec v1.2.8 h1:sgBJS6COt0b/P40VouWKdseidkDgHxYGm0SAglUHfP0= -github.com/ugorji/go/codec v1.2.8/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE= -golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20221208152030-732eee02a75a h1:4iLhBPcpqFmylhnkbY3W0ONLUYYkDAW9xMFLfxgsvCw= -golang.org/x/exp v0.0.0-20221208152030-732eee02a75a/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= -gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc= -gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/code/handlers/card_clear_action.go b/code/handlers/card_clear_action.go deleted file mode 100644 index 355e592..0000000 --- a/code/handlers/card_clear_action.go +++ /dev/null @@ -1,43 +0,0 @@ -package handlers - -import ( - "context" - larkcard "github.com/larksuite/oapi-sdk-go/v3/card" - "start-feishubot/services" -) - -func NewClearCardHandler(cardMsg CardMsg, m MessageHandler) CardHandlerFunc { - return func(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) { - if cardMsg.Kind == ClearCardKind { - newCard, err, done := CommonProcessClearCache(cardMsg, m.sessionCache) - if done { - return newCard, err - } - return nil, nil - } - return nil, ErrNextHandler - } -} - -func CommonProcessClearCache(cardMsg CardMsg, session services.SessionServiceCacheInterface) ( - interface{}, error, bool) { - if cardMsg.Value == "1" { - session.Clear(cardMsg.SessionId) - newCard, _ := newSendCard( - withHeader("️🆑 机器人提醒", larkcard.TemplateGrey), - withMainMd("已删除此话题的上下文信息"), - withNote("我们可以开始一个全新的话题,继续找我聊天吧"), - ) - //fmt.Printf("session: %v", newCard) - return newCard, nil, true - } - if cardMsg.Value == "0" { - newCard, _ := newSendCard( - withHeader("️🆑 机器人提醒", larkcard.TemplateGreen), - withMainMd("依旧保留此话题的上下文信息"), - withNote("我们可以继续探讨这个话题,期待和您聊天。如果您有其他问题或者想要讨论的话题,请告诉我哦"), - ) - return newCard, nil, true - } - return nil, nil, false -} diff --git a/code/handlers/card_common_action.go b/code/handlers/card_common_action.go deleted file mode 100644 index 0ebbd16..0000000 --- a/code/handlers/card_common_action.go +++ /dev/null @@ -1,43 +0,0 @@ -package handlers - -import ( - "context" - "encoding/json" - "fmt" - larkcard "github.com/larksuite/oapi-sdk-go/v3/card" -) - -type CardHandlerMeta func(cardMsg CardMsg, m MessageHandler) CardHandlerFunc - -type CardHandlerFunc func(ctx context.Context, cardAction *larkcard.CardAction) ( - interface{}, error) - -var ErrNextHandler = fmt.Errorf("next handler") - -func NewCardHandler(m MessageHandler) CardHandlerFunc { - handlers := []CardHandlerMeta{ - NewClearCardHandler, - NewPicResolutionHandler, - NewPicTextMoreHandler, - NewPicModeChangeHandler, - NewRoleTagCardHandler, - NewRoleCardHandler, - } - - return func(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) { - var cardMsg CardMsg - actionValue := cardAction.Action.Value - actionValueJson, _ := json.Marshal(actionValue) - json.Unmarshal(actionValueJson, &cardMsg) - //pp.Println(cardMsg) - for _, handler := range handlers { - h := handler(cardMsg, m) - i, err := h(ctx, cardAction) - if err == ErrNextHandler { - continue - } - return i, err - } - return nil, nil - } -} diff --git a/code/handlers/card_pic_action.go b/code/handlers/card_pic_action.go deleted file mode 100644 index 83ad779..0000000 --- a/code/handlers/card_pic_action.go +++ /dev/null @@ -1,92 +0,0 @@ -package handlers - -import ( - "context" - larkcard "github.com/larksuite/oapi-sdk-go/v3/card" - "start-feishubot/services" -) - -func NewPicResolutionHandler(cardMsg CardMsg, m MessageHandler) CardHandlerFunc { - return func(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) { - if cardMsg.Kind == PicResolutionKind { - CommonProcessPicResolution(cardMsg, cardAction, m.sessionCache) - return nil, nil - } - return nil, ErrNextHandler - } -} - -func NewPicModeChangeHandler(cardMsg CardMsg, m MessageHandler) CardHandlerFunc { - return func(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) { - if cardMsg.Kind == PicModeChangeKind { - newCard, err, done := CommonProcessPicModeChange(cardMsg, m.sessionCache) - if done { - return newCard, err - } - return nil, nil - } - return nil, ErrNextHandler - } -} -func NewPicTextMoreHandler(cardMsg CardMsg, m MessageHandler) CardHandlerFunc { - return func(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) { - if cardMsg.Kind == PicTextMoreKind { - go func() { - m.CommonProcessPicMore(cardMsg) - }() - return nil, nil - } - return nil, ErrNextHandler - } -} - -func CommonProcessPicResolution(msg CardMsg, - cardAction *larkcard.CardAction, - cache services.SessionServiceCacheInterface) { - option := cardAction.Action.Option - //fmt.Println(larkcore.Prettify(msg)) - cache.SetPicResolution(msg.SessionId, services.Resolution(option)) - //send text - replyMsg(context.Background(), "已更新图片分辨率为"+option, - &msg.MsgId) -} - -func (m MessageHandler) CommonProcessPicMore(msg CardMsg) { - resolution := m.sessionCache.GetPicResolution(msg.SessionId) - //fmt.Println("resolution: ", resolution) - //fmt.Println("msg: ", msg) - question := msg.Value.(string) - bs64, _ := m.gpt.GenerateOneImage(question, resolution) - replayImageCardByBase64(context.Background(), bs64, &msg.MsgId, - &msg.SessionId, question) -} - -func CommonProcessPicModeChange(cardMsg CardMsg, - session services.SessionServiceCacheInterface) ( - interface{}, error, bool) { - if cardMsg.Value == "1" { - - sessionId := cardMsg.SessionId - session.Clear(sessionId) - session.SetMode(sessionId, - services.ModePicCreate) - session.SetPicResolution(sessionId, - services.Resolution256) - - newCard, _ := - newSendCard( - withHeader("🖼️ 已进入图片创作模式", larkcard.TemplateBlue), - withPicResolutionBtn(&sessionId), - withNote("提醒:回复文本或图片,让AI生成相关的图片。")) - return newCard, nil, true - } - if cardMsg.Value == "0" { - newCard, _ := newSendCard( - withHeader("️🎒 机器人提醒", larkcard.TemplateGreen), - withMainMd("依旧保留此话题的上下文信息"), - withNote("我们可以继续探讨这个话题,期待和您聊天。如果您有其他问题或者想要讨论的话题,请告诉我哦"), - ) - return newCard, nil, true - } - return nil, nil, false -} diff --git a/code/handlers/card_role_action.go b/code/handlers/card_role_action.go deleted file mode 100644 index bb81156..0000000 --- a/code/handlers/card_role_action.go +++ /dev/null @@ -1,75 +0,0 @@ -package handlers - -import ( - "context" - larkcard "github.com/larksuite/oapi-sdk-go/v3/card" - "start-feishubot/initialization" - "start-feishubot/services" - "start-feishubot/services/openai" -) - -func NewRoleTagCardHandler(cardMsg CardMsg, - m MessageHandler) CardHandlerFunc { - return func(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) { - - if cardMsg.Kind == RoleTagsChooseKind { - newCard, err, done := CommonProcessRoleTag(cardMsg, cardAction, - m.sessionCache) - if done { - return newCard, err - } - return nil, nil - } - return nil, ErrNextHandler - } -} - -func NewRoleCardHandler(cardMsg CardMsg, - m MessageHandler) CardHandlerFunc { - return func(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) { - - if cardMsg.Kind == RoleChooseKind { - newCard, err, done := CommonProcessRole(cardMsg, cardAction, - m.sessionCache) - if done { - return newCard, err - } - return nil, nil - } - return nil, ErrNextHandler - } -} - -func CommonProcessRoleTag(msg CardMsg, cardAction *larkcard.CardAction, - cache services.SessionServiceCacheInterface) (interface{}, - error, bool) { - option := cardAction.Action.Option - //replyMsg(context.Background(), "已选择tag:"+option, - // &msg.MsgId) - roles := initialization.GetTitleListByTag(option) - //fmt.Printf("roles: %s", roles) - SendRoleListCard(context.Background(), &msg.SessionId, - &msg.MsgId, option, *roles) - return nil, nil, true -} - -func CommonProcessRole(msg CardMsg, cardAction *larkcard.CardAction, - cache services.SessionServiceCacheInterface) (interface{}, - error, bool) { - option := cardAction.Action.Option - contentByTitle, error := initialization.GetFirstRoleContentByTitle(option) - if error != nil { - return nil, error, true - } - cache.Clear(msg.SessionId) - systemMsg := append([]openai.Messages{}, openai.Messages{ - Role: "system", Content: contentByTitle, - }) - cache.SetMsg(msg.SessionId, systemMsg) - //pp.Println("systemMsg: ", systemMsg) - sendSystemInstructionCard(context.Background(), &msg.SessionId, - &msg.MsgId, contentByTitle) - //replyMsg(context.Background(), "已选择角色:"+contentByTitle, - // &msg.MsgId) - return nil, nil, true -} diff --git a/code/handlers/common.go b/code/handlers/common.go deleted file mode 100644 index 6bfac0c..0000000 --- a/code/handlers/common.go +++ /dev/null @@ -1,100 +0,0 @@ -package handlers - -import ( - "encoding/json" - "fmt" - "regexp" - "strconv" - "strings" -) - -// func sendCard -func msgFilter(msg string) string { - //replace @到下一个非空的字段 为 '' - regex := regexp.MustCompile(`@[^ ]*`) - return regex.ReplaceAllString(msg, "") - -} -func parseContent(content string) string { - //"{\"text\":\"@_user_1 hahaha\"}", - //only get text content hahaha - var contentMap map[string]interface{} - err := json.Unmarshal([]byte(content), &contentMap) - if err != nil { - fmt.Println(err) - } - if contentMap["text"] == nil { - return "" - } - text := contentMap["text"].(string) - return msgFilter(text) -} -func processMessage(msg interface{}) (string, error) { - msg = strings.TrimSpace(msg.(string)) - msgB, err := json.Marshal(msg) - if err != nil { - return "", err - } - - msgStr := string(msgB) - - if len(msgStr) >= 2 { - msgStr = msgStr[1 : len(msgStr)-1] - } - return msgStr, nil -} - -func processNewLine(msg string) string { - return strings.Replace(msg, "\\n", ` -`, -1) -} - -func processQuote(msg string) string { - return strings.Replace(msg, "\\\"", "\"", -1) -} - -// 将字符中 \u003c 替换为 < 等等 -func processUnicode(msg string) string { - regex := regexp.MustCompile(`\\u[0-9a-fA-F]{4}`) - return regex.ReplaceAllStringFunc(msg, func(s string) string { - r, _ := regexp.Compile(`\\u`) - s = r.ReplaceAllString(s, "") - i, _ := strconv.ParseInt(s, 16, 32) - return string(rune(i)) - }) -} - -func cleanTextBlock(msg string) string { - msg = processNewLine(msg) - msg = processUnicode(msg) - msg = processQuote(msg) - return msg -} - -func parseFileKey(content string) string { - var contentMap map[string]interface{} - err := json.Unmarshal([]byte(content), &contentMap) - if err != nil { - fmt.Println(err) - return "" - } - if contentMap["file_key"] == nil { - return "" - } - fileKey := contentMap["file_key"].(string) - return fileKey -} - -func parseImageKey(content string) string { - var contentMap map[string]interface{} - err := json.Unmarshal([]byte(content), &contentMap) - if err != nil { - fmt.Println(err) - return "" - } - if contentMap["image_key"] == nil { - return "" - } - imageKey := contentMap["image_key"].(string) - return imageKey -} diff --git a/code/handlers/event_common_action.go b/code/handlers/event_common_action.go deleted file mode 100644 index ab5e875..0000000 --- a/code/handlers/event_common_action.go +++ /dev/null @@ -1,154 +0,0 @@ -package handlers - -import ( - "context" - "fmt" - larkim "github.com/larksuite/oapi-sdk-go/v3/service/im/v1" - "start-feishubot/initialization" - "start-feishubot/services/openai" - "start-feishubot/utils" -) - -type MsgInfo struct { - handlerType HandlerType - msgType string - msgId *string - chatId *string - userId string - qParsed string - fileKey string - imageKey string - sessionId *string - mention []*larkim.MentionEvent -} -type ActionInfo struct { - handler *MessageHandler - ctx *context.Context - info *MsgInfo -} - -type Action interface { - Execute(a *ActionInfo) bool -} - -type ProcessedUniqueAction struct { //消息唯一性 -} - -func (*ProcessedUniqueAction) Execute(a *ActionInfo) bool { - if a.handler.msgCache.IfProcessed(*a.info.msgId) { - return false - } - a.handler.msgCache.TagProcessed(*a.info.msgId) - return true -} - -type ProcessMentionAction struct { //是否机器人应该处理 -} - -func (*ProcessMentionAction) Execute(a *ActionInfo) bool { - // 私聊直接过 - if a.info.handlerType == UserHandler { - return true - } - // 群聊判断是否提到机器人 - if a.info.handlerType == GroupHandler { - if a.handler.judgeIfMentionMe(a.info.mention) { - return true - } - return false - } - return false -} - -type EmptyAction struct { /*空消息*/ -} - -func (*EmptyAction) Execute(a *ActionInfo) bool { - if len(a.info.qParsed) == 0 { - sendMsg(*a.ctx, "🤖️:你想知道什么呢~", a.info.chatId) - fmt.Println("msgId", *a.info.msgId, - "message.text is empty") - return false - } - return true -} - -type ClearAction struct { /*清除消息*/ -} - -func (*ClearAction) Execute(a *ActionInfo) bool { - if _, foundClear := utils.EitherTrimEqual(a.info.qParsed, - "/clear", "清除"); foundClear { - sendClearCacheCheckCard(*a.ctx, a.info.sessionId, - a.info.msgId) - return false - } - return true -} - -type RolePlayAction struct { /*角色扮演*/ -} - -func (*RolePlayAction) Execute(a *ActionInfo) bool { - if system, foundSystem := utils.EitherCutPrefix(a.info.qParsed, - "/system ", "角色扮演 "); foundSystem { - a.handler.sessionCache.Clear(*a.info.sessionId) - systemMsg := append([]openai.Messages{}, openai.Messages{ - Role: "system", Content: system, - }) - a.handler.sessionCache.SetMsg(*a.info.sessionId, systemMsg) - sendSystemInstructionCard(*a.ctx, a.info.sessionId, - a.info.msgId, system) - return false - } - return true -} - -type HelpAction struct { /*帮助*/ -} - -func (*HelpAction) Execute(a *ActionInfo) bool { - if _, foundHelp := utils.EitherTrimEqual(a.info.qParsed, "/help", - "帮助"); foundHelp { - sendHelpCard(*a.ctx, a.info.sessionId, a.info.msgId) - return false - } - return true -} - -type BalanceAction struct { /*余额*/ -} - -func (*BalanceAction) Execute(a *ActionInfo) bool { - if _, foundBalance := utils.EitherTrimEqual(a.info.qParsed, - "/balance", "余额"); foundBalance { - balanceResp, err := a.handler.gpt.GetBalance() - if err != nil { - replyMsg(*a.ctx, "查询余额失败,请稍后再试", a.info.msgId) - return false - } - sendBalanceCard(*a.ctx, a.info.sessionId, *balanceResp) - return false - } - return true -} - -type RoleListAction struct { /*角色列表*/ -} - -func (*RoleListAction) Execute(a *ActionInfo) bool { - if _, foundSystem := utils.EitherTrimEqual(a.info.qParsed, - "/roles", "角色列表"); foundSystem { - //a.handler.sessionCache.Clear(*a.info.sessionId) - //systemMsg := append([]openai.Messages{}, openai.Messages{ - // Role: "system", Content: system, - //}) - //a.handler.sessionCache.SetMsg(*a.info.sessionId, systemMsg) - //sendSystemInstructionCard(*a.ctx, a.info.sessionId, - // a.info.msgId, system) - tags := initialization.GetAllUniqueTags() - SendRoleTagsCard(*a.ctx, a.info.sessionId, a.info.msgId, *tags) - return false - } - return true -} diff --git a/code/handlers/event_msg_action.go b/code/handlers/event_msg_action.go deleted file mode 100644 index 2697e13..0000000 --- a/code/handlers/event_msg_action.go +++ /dev/null @@ -1,157 +0,0 @@ -package handlers - -import ( - "encoding/json" - "fmt" - "github.com/k0kubun/pp/v3" - "log" - "start-feishubot/initialization" - "start-feishubot/services/accesscontrol" - "start-feishubot/services/chatgpt" - "start-feishubot/services/openai" - "strings" - "time" -) - -type MessageAction struct { /*消息*/ - chatgpt *chatgpt.ChatGPT -} - -func (m *MessageAction) Execute(a *ActionInfo) bool { - - // Add access control - if initialization.GetConfig().AccessControlEnable && - !accesscontrol.CheckAllowAccessThenIncrement(&a.info.userId) { - - msg := fmt.Sprintf("UserId: 【%s】 has accessed max count today! Max access count today %s: 【%d】", - a.info.userId, accesscontrol.GetCurrentDateFlag(), initialization.GetConfig().AccessControlMaxCountPerUserPerDay) - - _ = sendMsg(*a.ctx, msg, a.info.chatId) - return false - } - - //s := "快速响应,用于测试: " + time.Now().String() + - // " accesscontrol.currentDate " + accesscontrol.GetCurrentDateFlag() - //_ = sendMsg(*a.ctx, s, a.info.chatId) - //log.Println(s) - //return false - - cardId, err2 := sendOnProcess(a) - if err2 != nil { - return false - } - - answer := "" - chatResponseStream := make(chan string) - done := make(chan struct{}) // 添加 done 信号,保证 goroutine 正确退出 - noContentTimeout := time.AfterFunc(10*time.Second, func() { - pp.Println("no content timeout") - close(done) - err := updateFinalCard(*a.ctx, "请求超时", cardId) - if err != nil { - return - } - return - }) - defer noContentTimeout.Stop() - msg := a.handler.sessionCache.GetMsg(*a.info.sessionId) - msg = append(msg, openai.Messages{ - Role: "user", Content: a.info.qParsed, - }) - go func() { - defer func() { - if err := recover(); err != nil { - err := updateFinalCard(*a.ctx, "聊天失败", cardId) - if err != nil { - printErrorMessage(a, msg, err) - return - } - } - }() - - //log.Printf("UserId: %s , Request: %s", a.info.userId, msg) - - if err := m.chatgpt.StreamChat(*a.ctx, msg, chatResponseStream); err != nil { - err := updateFinalCard(*a.ctx, "聊天失败", cardId) - if err != nil { - printErrorMessage(a, msg, err) - return - } - close(done) // 关闭 done 信号 - } - - close(done) // 关闭 done 信号 - }() - ticker := time.NewTicker(700 * time.Millisecond) - defer ticker.Stop() // 注意在函数结束时停止 ticker - go func() { - for { - select { - case <-done: - return - case <-ticker.C: - err := updateTextCard(*a.ctx, answer, cardId) - if err != nil { - printErrorMessage(a, msg, err) - return - } - } - } - }() - - for { - select { - case res, ok := <-chatResponseStream: - if !ok { - return false - } - noContentTimeout.Stop() - answer += res - //pp.Println("answer", answer) - case <-done: // 添加 done 信号的处理 - err := updateFinalCard(*a.ctx, answer, cardId) - if err != nil { - printErrorMessage(a, msg, err) - return false - } - ticker.Stop() - msg := append(msg, openai.Messages{ - Role: "assistant", Content: answer, - }) - a.handler.sessionCache.SetMsg(*a.info.sessionId, msg) - close(chatResponseStream) - //if new topic - //if len(msg) == 2 { - // //fmt.Println("new topic", msg[1].Content) - // //updateNewTextCard(*a.ctx, a.info.sessionId, a.info.msgId, - // // completions.Content) - //} - log.Printf("\n\n\n") - log.Printf("Success request: UserId: %s , Request: %s , Response: %s", a.info.userId, msg, answer) - jsonByteArray, err := json.Marshal(msg) - if err != nil { - log.Printf("Error marshaling JSON request: UserId: %s , Request: %s , Response: %s", a.info.userId, jsonByteArray, answer) - } - jsonStr := strings.ReplaceAll(string(jsonByteArray), "\\n", "") - jsonStr = strings.ReplaceAll(jsonStr, "\n", "") - log.Printf("\n\n\n") - log.Printf("Success request plain jsonStr: UserId: %s , Request: %s , Response: %s", - a.info.userId, jsonStr, answer) - return false - } - } -} - -func printErrorMessage(a *ActionInfo, msg []openai.Messages, err error) { - log.Printf("Failed request: UserId: %s , Request: %s , Err: %s", a.info.userId, msg, err) -} - -func sendOnProcess(a *ActionInfo) (*string, error) { - // send 正在处理中 - cardId, err := sendOnProcessCard(*a.ctx, a.info.sessionId, a.info.msgId) - if err != nil { - return nil, err - } - return cardId, nil - -} diff --git a/code/handlers/handler.go b/code/handlers/handler.go deleted file mode 100644 index d9a0ea8..0000000 --- a/code/handlers/handler.go +++ /dev/null @@ -1,136 +0,0 @@ -package handlers - -import ( - "context" - "fmt" - "start-feishubot/initialization" - "start-feishubot/services" - "start-feishubot/services/chatgpt" - "start-feishubot/services/openai" - "strings" - - larkcard "github.com/larksuite/oapi-sdk-go/v3/card" - - larkim "github.com/larksuite/oapi-sdk-go/v3/service/im/v1" -) - -// 责任链 -func chain(data *ActionInfo, actions ...Action) bool { - for _, v := range actions { - if !v.Execute(data) { - return false - } - } - return true -} - -type MessageHandler struct { - sessionCache services.SessionServiceCacheInterface - msgCache services.MsgCacheInterface - gpt *openai.ChatGPT - config initialization.Config -} - -func (m MessageHandler) cardHandler(ctx context.Context, - cardAction *larkcard.CardAction) (interface{}, error) { - messageHandler := NewCardHandler(m) - return messageHandler(ctx, cardAction) -} - -func judgeMsgType(event *larkim.P2MessageReceiveV1) (string, error) { - msgType := event.Event.Message.MessageType - - switch *msgType { - case "text", "image", "audio": - return *msgType, nil - default: - return "", fmt.Errorf("unknown message type: %v", *msgType) - } - -} - -func (m MessageHandler) msgReceivedHandler(ctx context.Context, event *larkim.P2MessageReceiveV1) error { - handlerType := judgeChatType(event) - if handlerType == "otherChat" { - fmt.Println("unknown chat type") - return nil - } - //fmt.Println(larkcore.Prettify(event.Event.Message)) - - msgType, err := judgeMsgType(event) - if err != nil { - fmt.Printf("error getting message type: %v\n", err) - return nil - } - - content := event.Event.Message.Content - msgId := event.Event.Message.MessageId - rootId := event.Event.Message.RootId - chatId := event.Event.Message.ChatId - mention := event.Event.Message.Mentions - - sessionId := rootId - if sessionId == nil || *sessionId == "" { - sessionId = msgId - } - msgInfo := MsgInfo{ - handlerType: handlerType, - msgType: msgType, - msgId: msgId, - userId: *event.Event.Sender.SenderId.UserId, - chatId: chatId, - qParsed: strings.Trim(parseContent(*content), " "), - fileKey: parseFileKey(*content), - imageKey: parseImageKey(*content), - sessionId: sessionId, - mention: mention, - } - data := &ActionInfo{ - ctx: &ctx, - handler: &m, - info: &msgInfo, - } - actions := []Action{ - &ProcessedUniqueAction{}, //避免重复处理 - &ProcessMentionAction{}, //判断机器人是否应该被调用 - &EmptyAction{}, //空消息处理 - &ClearAction{}, //清除消息处理 - &RoleListAction{}, //角色列表处理 - &HelpAction{}, //帮助处理 - &RolePlayAction{}, //角色扮演处理 - &MessageAction{ - chatgpt: chatgpt.NewGpt3(&m.config), - }, //消息处理 - } - - chain(data, actions...) - return nil -} - -var _ MessageHandlerInterface = (*MessageHandler)(nil) - -func NewMessageHandler(gpt *openai.ChatGPT, - config initialization.Config) MessageHandlerInterface { - return &MessageHandler{ - sessionCache: services.GetSessionCache(), - msgCache: services.GetMsgCache(), - gpt: gpt, - config: config, - } -} - -func (m MessageHandler) judgeIfMentionMe(mention []*larkim. - MentionEvent) bool { - if len(mention) != 1 { - return false - } - return *mention[0].Name == m.config.FeishuBotName -} - -func AzureModeCheck(a *ActionInfo) bool { - if a.handler.config.AzureOn { - //sendMsg(*a.ctx, "Azure Openai 接口下,暂不支持此功能", a.info.chatId) - return false - } - return true -} diff --git a/code/handlers/init.go b/code/handlers/init.go deleted file mode 100644 index 649515c..0000000 --- a/code/handlers/init.go +++ /dev/null @@ -1,71 +0,0 @@ -package handlers - -import ( - "context" - "start-feishubot/initialization" - "start-feishubot/services/openai" - - larkcard "github.com/larksuite/oapi-sdk-go/v3/card" - larkim "github.com/larksuite/oapi-sdk-go/v3/service/im/v1" -) - -type MessageHandlerInterface interface { - msgReceivedHandler(ctx context.Context, event *larkim.P2MessageReceiveV1) error - cardHandler(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) -} - -type HandlerType string - -const ( - GroupHandler = "group" - UserHandler = "personal" -) - -// handlers 所有消息类型类型的处理器 -var handlers MessageHandlerInterface - -func InitHandlers(gpt *openai.ChatGPT, config initialization.Config) { - handlers = NewMessageHandler(gpt, config) -} - -func Handler(ctx context.Context, event *larkim.P2MessageReceiveV1) error { - return handlers.msgReceivedHandler(ctx, event) -} - -func ReadHandler(ctx context.Context, event *larkim.P2MessageReadV1) error { - _ = event.Event.Reader.ReaderId.OpenId - //fmt.Printf("msg is read by : %v \n", *readerId) - return nil -} - -func CardHandler() func(ctx context.Context, - cardAction *larkcard.CardAction) (interface{}, error) { - return func(ctx context.Context, cardAction *larkcard.CardAction) (interface{}, error) { - //handlerType := judgeCardType(cardAction) - return handlers.cardHandler(ctx, cardAction) - } -} - -func judgeCardType(cardAction *larkcard.CardAction) HandlerType { - actionValue := cardAction.Action.Value - chatType := actionValue["chatType"] - //fmt.Printf("chatType: %v", chatType) - if chatType == "group" { - return GroupHandler - } - if chatType == "personal" { - return UserHandler - } - return "otherChat" -} - -func judgeChatType(event *larkim.P2MessageReceiveV1) HandlerType { - chatType := event.Event.Message.ChatType - if *chatType == "group" { - return GroupHandler - } - if *chatType == "p2p" { - return UserHandler - } - return "otherChat" -} diff --git a/code/handlers/msg.go b/code/handlers/msg.go deleted file mode 100644 index 7ef227e..0000000 --- a/code/handlers/msg.go +++ /dev/null @@ -1,764 +0,0 @@ -package handlers - -import ( - "bytes" - "context" - "encoding/base64" - "errors" - "fmt" - "start-feishubot/initialization" - "start-feishubot/services" - "start-feishubot/services/openai" - - "github.com/google/uuid" - larkcard "github.com/larksuite/oapi-sdk-go/v3/card" - larkim "github.com/larksuite/oapi-sdk-go/v3/service/im/v1" -) - -type CardKind string -type CardChatType string - -var ( - ClearCardKind = CardKind("clear") // 清空上下文 - PicModeChangeKind = CardKind("pic_mode_change") // 切换图片创作模式 - PicResolutionKind = CardKind("pic_resolution") // 图片分辨率调整 - PicTextMoreKind = CardKind("pic_text_more") // 重新根据文本生成图片 - PicVarMoreKind = CardKind("pic_var_more") // 变量图片 - RoleTagsChooseKind = CardKind("role_tags_choose") // 内置角色所属标签选择 - RoleChooseKind = CardKind("role_choose") // 内置角色选择 -) - -var ( - GroupChatType = CardChatType("group") - UserChatType = CardChatType("personal") -) - -type CardMsg struct { - Kind CardKind - ChatType CardChatType - Value interface{} - SessionId string - MsgId string -} - -type MenuOption struct { - value string - label string -} - -func replyCard(ctx context.Context, - msgId *string, - cardContent string, -) error { - client := initialization.GetLarkClient() - resp, err := client.Im.Message.Reply(ctx, larkim.NewReplyMessageReqBuilder(). - MessageId(*msgId). - Body(larkim.NewReplyMessageReqBodyBuilder(). - MsgType(larkim.MsgTypeInteractive). - Uuid(uuid.New().String()). - Content(cardContent). - Build()). - Build()) - - // 处理错误 - if err != nil { - fmt.Println(err) - return err - } - - // 服务端错误处理 - if !resp.Success() { - fmt.Println(resp.Code, resp.Msg, resp.RequestId()) - return errors.New(resp.Msg) - } - return nil -} - -func replyCardWithBackId(ctx context.Context, - msgId *string, - cardContent string, -) (*string, error) { - client := initialization.GetLarkClient() - resp, err := client.Im.Message.Reply(ctx, larkim.NewReplyMessageReqBuilder(). - MessageId(*msgId). - Body(larkim.NewReplyMessageReqBodyBuilder(). - MsgType(larkim.MsgTypeInteractive). - Uuid(uuid.New().String()). - Content(cardContent). - Build()). - Build()) - - // 处理错误 - if err != nil { - fmt.Println(err) - return nil, err - } - - // 服务端错误处理 - if !resp.Success() { - fmt.Println(resp.Code, resp.Msg, resp.RequestId()) - return nil, errors.New(resp.Msg) - } - - //ctx = context.WithValue(ctx, "SendMsgId", *resp.Data.MessageId) - //SendMsgId := ctx.Value("SendMsgId") - //pp.Println(SendMsgId) - return resp.Data.MessageId, nil -} - -func newSendCard(header *larkcard.MessageCardHeader, elements ...larkcard.MessageCardElement) (string, error) { - config := larkcard.NewMessageCardConfig(). - WideScreenMode(false). - EnableForward(true). - UpdateMulti(true). - Build() - var aElementPool []larkcard.MessageCardElement - for _, element := range elements { - aElementPool = append(aElementPool, element) - } - // 卡片消息体 - cardContent, err := larkcard.NewMessageCard(). - Config(config). - Header(header). - Elements( - aElementPool, - ). - String() - return cardContent, err -} -func newSendCardWithOutHeader( - elements ...larkcard.MessageCardElement) (string, error) { - config := larkcard.NewMessageCardConfig(). - WideScreenMode(false). - EnableForward(true). - UpdateMulti(true). - Build() - var aElementPool []larkcard.MessageCardElement - for _, element := range elements { - aElementPool = append(aElementPool, element) - } - // 卡片消息体 - cardContent, err := larkcard.NewMessageCard(). - Config(config). - Elements( - aElementPool, - ). - String() - return cardContent, err -} - -func newSimpleSendCard( - elements ...larkcard.MessageCardElement) (string, - error) { - config := larkcard.NewMessageCardConfig(). - WideScreenMode(false). - EnableForward(true). - UpdateMulti(false). - Build() - var aElementPool []larkcard.MessageCardElement - for _, element := range elements { - aElementPool = append(aElementPool, element) - } - // 卡片消息体 - cardContent, err := larkcard.NewMessageCard(). - Config(config). - Elements( - aElementPool, - ). - String() - return cardContent, err -} - -// withSplitLine 用于生成分割线 -func withSplitLine() larkcard.MessageCardElement { - splitLine := larkcard.NewMessageCardHr(). - Build() - return splitLine -} - -// withHeader 用于生成消息头 -func withHeader(title string, color string) *larkcard. - MessageCardHeader { - if title == "" { - title = "🤖️机器人提醒" - } - header := larkcard.NewMessageCardHeader(). - Template(color). - Title(larkcard.NewMessageCardPlainText(). - Content(title). - Build()). - Build() - return header -} - -// withNote 用于生成纯文本脚注 -func withNote(note string) larkcard.MessageCardElement { - noteElement := larkcard.NewMessageCardNote(). - Elements([]larkcard.MessageCardNoteElement{larkcard.NewMessageCardPlainText(). - Content(note). - Build()}). - Build() - return noteElement -} - -// withMainMd 用于生成markdown消息体 -func withMainMd(msg string) larkcard.MessageCardElement { - msg, i := processMessage(msg) - msg = processNewLine(msg) - if i != nil { - return nil - } - mainElement := larkcard.NewMessageCardDiv(). - Fields([]*larkcard.MessageCardField{larkcard.NewMessageCardField(). - Text(larkcard.NewMessageCardLarkMd(). - Content(msg). - Build()). - IsShort(true). - Build()}). - Build() - return mainElement -} - -// withMainText 用于生成纯文本消息体 -func withMainText(msg string) larkcard.MessageCardElement { - msg, i := processMessage(msg) - msg = cleanTextBlock(msg) - if i != nil { - return nil - } - mainElement := larkcard.NewMessageCardDiv(). - Fields([]*larkcard.MessageCardField{larkcard.NewMessageCardField(). - Text(larkcard.NewMessageCardPlainText(). - Content(msg). - Build()). - IsShort(false). - Build()}). - Build() - return mainElement -} - -func withImageDiv(imageKey string) larkcard.MessageCardElement { - imageElement := larkcard.NewMessageCardImage(). - ImgKey(imageKey). - Alt(larkcard.NewMessageCardPlainText().Content(""). - Build()). - Preview(true). - Mode(larkcard.MessageCardImageModelCropCenter). - CompactWidth(true). - Build() - return imageElement -} - -// withMdAndExtraBtn 用于生成带有额外按钮的消息体 -func withMdAndExtraBtn(msg string, btn *larkcard. - MessageCardEmbedButton) larkcard.MessageCardElement { - msg, i := processMessage(msg) - msg = processNewLine(msg) - if i != nil { - return nil - } - mainElement := larkcard.NewMessageCardDiv(). - Fields( - []*larkcard.MessageCardField{ - larkcard.NewMessageCardField(). - Text(larkcard.NewMessageCardLarkMd(). - Content(msg). - Build()). - IsShort(true). - Build()}). - Extra(btn). - Build() - return mainElement -} - -func newBtn(content string, value map[string]interface{}, - typename larkcard.MessageCardButtonType) *larkcard. - MessageCardEmbedButton { - btn := larkcard.NewMessageCardEmbedButton(). - Type(typename). - Value(value). - Text(larkcard.NewMessageCardPlainText(). - Content(content). - Build()) - return btn -} - -func newMenu( - placeHolder string, - value map[string]interface{}, - options ...MenuOption, -) *larkcard. - MessageCardEmbedSelectMenuStatic { - var aOptionPool []*larkcard.MessageCardEmbedSelectOption - for _, option := range options { - aOption := larkcard.NewMessageCardEmbedSelectOption(). - Value(option.value). - Text(larkcard.NewMessageCardPlainText(). - Content(option.label). - Build()) - aOptionPool = append(aOptionPool, aOption) - - } - btn := larkcard.NewMessageCardEmbedSelectMenuStatic(). - MessageCardEmbedSelectMenuStatic(larkcard.NewMessageCardEmbedSelectMenuBase(). - Options(aOptionPool). - Placeholder(larkcard.NewMessageCardPlainText(). - Content(placeHolder). - Build()). - Value(value). - Build()). - Build() - return btn -} - -// 清除卡片按钮 -func withClearDoubleCheckBtn(sessionID *string) larkcard.MessageCardElement { - confirmBtn := newBtn("确认清除", map[string]interface{}{ - "value": "1", - "kind": ClearCardKind, - "chatType": UserChatType, - "sessionId": *sessionID, - }, larkcard.MessageCardButtonTypeDanger, - ) - cancelBtn := newBtn("我再想想", map[string]interface{}{ - "value": "0", - "kind": ClearCardKind, - "sessionId": *sessionID, - "chatType": UserChatType, - }, - larkcard.MessageCardButtonTypeDefault) - - actions := larkcard.NewMessageCardAction(). - Actions([]larkcard.MessageCardActionElement{confirmBtn, cancelBtn}). - Layout(larkcard.MessageCardActionLayoutBisected.Ptr()). - Build() - - return actions -} - -func withPicModeDoubleCheckBtn(sessionID *string) larkcard. - MessageCardElement { - confirmBtn := newBtn("切换模式", map[string]interface{}{ - "value": "1", - "kind": PicModeChangeKind, - "chatType": UserChatType, - "sessionId": *sessionID, - }, larkcard.MessageCardButtonTypeDanger, - ) - cancelBtn := newBtn("我再想想", map[string]interface{}{ - "value": "0", - "kind": PicModeChangeKind, - "sessionId": *sessionID, - "chatType": UserChatType, - }, - larkcard.MessageCardButtonTypeDefault) - - actions := larkcard.NewMessageCardAction(). - Actions([]larkcard.MessageCardActionElement{confirmBtn, cancelBtn}). - Layout(larkcard.MessageCardActionLayoutBisected.Ptr()). - Build() - - return actions -} - -func withOneBtn(btn *larkcard.MessageCardEmbedButton) larkcard. - MessageCardElement { - actions := larkcard.NewMessageCardAction(). - Actions([]larkcard.MessageCardActionElement{btn}). - Layout(larkcard.MessageCardActionLayoutFlow.Ptr()). - Build() - return actions -} - -//新建对话按钮 - -func withPicResolutionBtn(sessionID *string) larkcard. - MessageCardElement { - cancelMenu := newMenu("默认分辨率", - map[string]interface{}{ - "value": "0", - "kind": PicResolutionKind, - "sessionId": *sessionID, - "msgId": *sessionID, - }, - MenuOption{ - label: "256x256", - value: string(services.Resolution256), - }, - MenuOption{ - label: "512x512", - value: string(services.Resolution512), - }, - MenuOption{ - label: "1024x1024", - value: string(services.Resolution1024), - }, - ) - - actions := larkcard.NewMessageCardAction(). - Actions([]larkcard.MessageCardActionElement{cancelMenu}). - Layout(larkcard.MessageCardActionLayoutFlow.Ptr()). - Build() - return actions -} -func withRoleTagsBtn(sessionID *string, tags ...string) larkcard. - MessageCardElement { - var menuOptions []MenuOption - - for _, tag := range tags { - menuOptions = append(menuOptions, MenuOption{ - label: tag, - value: tag, - }) - } - cancelMenu := newMenu("选择角色分类", - map[string]interface{}{ - "value": "0", - "kind": RoleTagsChooseKind, - "sessionId": *sessionID, - "msgId": *sessionID, - }, - menuOptions..., - ) - - actions := larkcard.NewMessageCardAction(). - Actions([]larkcard.MessageCardActionElement{cancelMenu}). - Layout(larkcard.MessageCardActionLayoutFlow.Ptr()). - Build() - return actions -} - -func withRoleBtn(sessionID *string, titles ...string) larkcard. - MessageCardElement { - var menuOptions []MenuOption - - for _, tag := range titles { - menuOptions = append(menuOptions, MenuOption{ - label: tag, - value: tag, - }) - } - cancelMenu := newMenu("查看内置角色", - map[string]interface{}{ - "value": "0", - "kind": RoleChooseKind, - "sessionId": *sessionID, - "msgId": *sessionID, - }, - menuOptions..., - ) - - actions := larkcard.NewMessageCardAction(). - Actions([]larkcard.MessageCardActionElement{cancelMenu}). - Layout(larkcard.MessageCardActionLayoutFlow.Ptr()). - Build() - return actions -} - -func replyMsg(ctx context.Context, msg string, msgId *string) error { - msg, i := processMessage(msg) - if i != nil { - return i - } - client := initialization.GetLarkClient() - content := larkim.NewTextMsgBuilder(). - Text(msg). - Build() - - resp, err := client.Im.Message.Reply(ctx, larkim.NewReplyMessageReqBuilder(). - MessageId(*msgId). - Body(larkim.NewReplyMessageReqBodyBuilder(). - MsgType(larkim.MsgTypeText). - Uuid(uuid.New().String()). - Content(content). - Build()). - Build()) - - // 处理错误 - if err != nil { - fmt.Println(err) - return err - } - - // 服务端错误处理 - if !resp.Success() { - fmt.Println(resp.Code, resp.Msg, resp.RequestId()) - return errors.New(resp.Msg) - } - return nil -} - -func uploadImage(base64Str string) (*string, error) { - imageBytes, err := base64.StdEncoding.DecodeString(base64Str) - if err != nil { - fmt.Println(err) - return nil, err - } - client := initialization.GetLarkClient() - resp, err := client.Im.Image.Create(context.Background(), - larkim.NewCreateImageReqBuilder(). - Body(larkim.NewCreateImageReqBodyBuilder(). - ImageType(larkim.ImageTypeMessage). - Image(bytes.NewReader(imageBytes)). - Build()). - Build()) - - // 处理错误 - if err != nil { - fmt.Println(err) - return nil, err - } - - // 服务端错误处理 - if !resp.Success() { - fmt.Println(resp.Code, resp.Msg, resp.RequestId()) - return nil, errors.New(resp.Msg) - } - return resp.Data.ImageKey, nil -} -func replyImage(ctx context.Context, ImageKey *string, - msgId *string) error { - //fmt.Println("sendMsg", ImageKey, msgId) - - msgImage := larkim.MessageImage{ImageKey: *ImageKey} - content, err := msgImage.String() - if err != nil { - fmt.Println(err) - return err - } - client := initialization.GetLarkClient() - - resp, err := client.Im.Message.Reply(ctx, larkim.NewReplyMessageReqBuilder(). - MessageId(*msgId). - Body(larkim.NewReplyMessageReqBodyBuilder(). - MsgType(larkim.MsgTypeImage). - Uuid(uuid.New().String()). - Content(content). - Build()). - Build()) - - // 处理错误 - if err != nil { - fmt.Println(err) - return err - } - - // 服务端错误处理 - if !resp.Success() { - fmt.Println(resp.Code, resp.Msg, resp.RequestId()) - return errors.New(resp.Msg) - } - return nil - -} - -func replayImageCardByBase64(ctx context.Context, base64Str string, - msgId *string, sessionId *string, question string) error { - imageKey, err := uploadImage(base64Str) - if err != nil { - return err - } - //example := "img_v2_041b28e3-5680-48c2-9af2-497ace79333g" - //imageKey := &example - //fmt.Println("imageKey", *imageKey) - err = sendImageCard(ctx, *imageKey, msgId, sessionId, question) - if err != nil { - return err - } - return nil -} - -func sendMsg(ctx context.Context, msg string, chatId *string) error { - //fmt.Println("sendMsg", msg, chatId) - msg, i := processMessage(msg) - if i != nil { - return i - } - client := initialization.GetLarkClient() - content := larkim.NewTextMsgBuilder(). - Text(msg). - Build() - - //fmt.Println("content", content) - - resp, err := client.Im.Message.Create(ctx, larkim.NewCreateMessageReqBuilder(). - ReceiveIdType(larkim.ReceiveIdTypeChatId). - Body(larkim.NewCreateMessageReqBodyBuilder(). - MsgType(larkim.MsgTypeText). - ReceiveId(*chatId). - Content(content). - Build()). - Build()) - - // 处理错误 - if err != nil { - fmt.Println(err) - return err - } - - // 服务端错误处理 - if !resp.Success() { - fmt.Println(resp.Code, resp.Msg, resp.RequestId()) - return errors.New(resp.Msg) - } - return nil -} - -func PatchCard(ctx context.Context, msgId *string, - cardContent string) error { - //fmt.Println("sendMsg", msg, chatId) - client := initialization.GetLarkClient() - //content := larkim.NewTextMsgBuilder(). - // Text(msg). - // Build() - - //fmt.Println("content", content) - - resp, err := client.Im.Message.Patch(ctx, larkim.NewPatchMessageReqBuilder(). - MessageId(*msgId). - Body(larkim.NewPatchMessageReqBodyBuilder(). - Content(cardContent). - Build()). - Build()) - - // 处理错误 - if err != nil { - fmt.Println(err) - return err - } - - // 服务端错误处理 - if !resp.Success() { - fmt.Println(resp.Code, resp.Msg, resp.RequestId()) - return errors.New(resp.Msg) - } - return nil -} - -func sendClearCacheCheckCard(ctx context.Context, - sessionId *string, msgId *string) { - newCard, _ := newSendCard( - withHeader("🆑 机器人提醒", larkcard.TemplateBlue), - withMainMd("您确定要清除对话上下文吗?"), - withNote("请注意,这将开始一个全新的对话,您将无法利用之前话题的历史信息"), - withClearDoubleCheckBtn(sessionId)) - replyCard(ctx, msgId, newCard) -} - -func sendSystemInstructionCard(ctx context.Context, - sessionId *string, msgId *string, content string) { - newCard, _ := newSendCard( - withHeader("🥷 已进入角色扮演模式", larkcard.TemplateIndigo), - withMainText(content), - withNote("请注意,这将开始一个全新的对话,您将无法利用之前话题的历史信息")) - replyCard(ctx, msgId, newCard) -} - -func sendOnProcessCard(ctx context.Context, - sessionId *string, msgId *string) (*string, error) { - newCard, _ := newSendCardWithOutHeader( - withNote("正在思考,请稍等...")) - id, err := replyCardWithBackId(ctx, msgId, newCard) - if err != nil { - return nil, err - } - return id, nil -} - -func updateTextCard(ctx context.Context, msg string, - msgId *string) error { - newCard, _ := newSendCardWithOutHeader( - withMainText(msg), - withNote("正在生成,请稍等...")) - err := PatchCard(ctx, msgId, newCard) - if err != nil { - return err - } - return nil -} -func updateFinalCard( - ctx context.Context, - msg string, - msgId *string, -) error { - newCard, _ := newSendCardWithOutHeader( - withMainText(msg)) - err := PatchCard(ctx, msgId, newCard) - if err != nil { - return err - } - return nil -} - -func sendHelpCard(ctx context.Context, - sessionId *string, msgId *string) { - newCard, _ := newSendCard( - withHeader("🎒需要帮助吗?", larkcard.TemplateBlue), - withMainMd("**我是具备打字机效果的聊天机器人!**"), - withSplitLine(), - withMdAndExtraBtn( - "** 🆑 清除话题上下文**\n文本回复 *清除* 或 */clear*", - newBtn("立刻清除", map[string]interface{}{ - "value": "1", - "kind": ClearCardKind, - "chatType": UserChatType, - "sessionId": *sessionId, - }, larkcard.MessageCardButtonTypeDanger)), - withMainMd("🛖 **内置角色列表** \n"+" 文本回复 *角色列表* 或 */roles*"), - withMainMd("🥷 **角色扮演模式**\n文本回复*角色扮演* 或 */system*+空格+角色信息"), - withSplitLine(), - withMainMd("🎒 **需要更多帮助**\n文本回复 *帮助* 或 */help*"), - ) - replyCard(ctx, msgId, newCard) -} - -func sendImageCard(ctx context.Context, imageKey string, - msgId *string, sessionId *string, question string) error { - newCard, _ := newSimpleSendCard( - withImageDiv(imageKey), - withSplitLine(), - //再来一张 - withOneBtn(newBtn("再来一张", map[string]interface{}{ - "value": question, - "kind": PicTextMoreKind, - "chatType": UserChatType, - "msgId": *msgId, - "sessionId": *sessionId, - }, larkcard.MessageCardButtonTypePrimary)), - ) - replyCard(ctx, msgId, newCard) - return nil -} - -func sendBalanceCard(ctx context.Context, msgId *string, - balance openai.BalanceResponse) { - newCard, _ := newSendCard( - withHeader("🎰️ 余额查询", larkcard.TemplateBlue), - withMainMd(fmt.Sprintf("总额度: %.2f$", balance.TotalGranted)), - withMainMd(fmt.Sprintf("已用额度: %.2f$", balance.TotalUsed)), - withMainMd(fmt.Sprintf("可用额度: %.2f$", - balance.TotalAvailable)), - withNote(fmt.Sprintf("有效期: %s - %s", - balance.EffectiveAt.Format("2006-01-02 15:04:05"), - balance.ExpiresAt.Format("2006-01-02 15:04:05"))), - ) - replyCard(ctx, msgId, newCard) -} - -func SendRoleTagsCard(ctx context.Context, - sessionId *string, msgId *string, roleTags []string) { - newCard, _ := newSendCard( - withHeader("🛖 请选择角色类别", larkcard.TemplateIndigo), - withRoleTagsBtn(sessionId, roleTags...), - withNote("提醒:选择角色所属分类,以便我们为您推荐更多相关角色。")) - replyCard(ctx, msgId, newCard) -} - -func SendRoleListCard(ctx context.Context, - sessionId *string, msgId *string, roleTag string, roleList []string) { - newCard, _ := newSendCard( - withHeader("🛖 角色列表"+" - "+roleTag, larkcard.TemplateIndigo), - withRoleBtn(sessionId, roleList...), - withNote("提醒:选择内置场景,快速进入角色扮演模式。")) - replyCard(ctx, msgId, newCard) -} diff --git a/code/initialization/config.go b/code/initialization/config.go deleted file mode 100644 index 8e2079e..0000000 --- a/code/initialization/config.go +++ /dev/null @@ -1,181 +0,0 @@ -package initialization - -import ( - "fmt" - "github.com/spf13/pflag" - "os" - "strconv" - "strings" - "sync" - - "github.com/spf13/viper" -) - -type Config struct { - // 表示配置是否已经被初始化了。 - Initialized bool - EnableLog bool - FeishuAppId string - FeishuAppSecret string - FeishuAppEncryptKey string - FeishuAppVerificationToken string - FeishuBotName string - OpenaiApiKeys []string - HttpPort int - HttpsPort int - UseHttps bool - CertFile string - KeyFile string - OpenaiApiUrl string - HttpProxy string - AzureOn bool - AzureApiVersion string - AzureDeploymentName string - AzureResourceName string - AzureOpenaiToken string - AccessControlEnable bool - AccessControlMaxCountPerUserPerDay int - OpenAIHttpClientTimeOut int - OpenaiModel string -} - -var ( - cfg = pflag.StringP("config", "c", "./config.yaml", "apiserver config file path.") - config *Config - once sync.Once -) - -/* -GetConfig will call LoadConfig once and return a global singleton, you should always use this function to get config -*/ -func GetConfig() *Config { - - once.Do(func() { - config = LoadConfig(*cfg) - config.Initialized = true - }) - - return config -} - -/* -LoadConfig will load config and should only be called once, you should always use GetConfig to get config rather than -call this function directly -*/ -func LoadConfig(cfg string) *Config { - viper.SetConfigFile(cfg) - viper.ReadInConfig() - viper.AutomaticEnv() - //content, err := ioutil.ReadFile("config.yaml") - //if err != nil { - // fmt.Println("Error reading file:", err) - //} - //fmt.Println(string(content)) - - config := &Config{ - EnableLog: getViperBoolValue("ENABLE_LOG", false), - FeishuAppId: getViperStringValue("APP_ID", ""), - FeishuAppSecret: getViperStringValue("APP_SECRET", ""), - FeishuAppEncryptKey: getViperStringValue("APP_ENCRYPT_KEY", ""), - FeishuAppVerificationToken: getViperStringValue("APP_VERIFICATION_TOKEN", ""), - FeishuBotName: getViperStringValue("BOT_NAME", ""), - OpenaiApiKeys: getViperStringArray("OPENAI_KEY", nil), - HttpPort: getViperIntValue("HTTP_PORT", 9000), - HttpsPort: getViperIntValue("HTTPS_PORT", 9001), - UseHttps: getViperBoolValue("USE_HTTPS", false), - CertFile: getViperStringValue("CERT_FILE", "cert.pem"), - KeyFile: getViperStringValue("KEY_FILE", "key.pem"), - OpenaiApiUrl: getViperStringValue("API_URL", "https://api.openai.com"), - HttpProxy: getViperStringValue("HTTP_PROXY", ""), - AzureOn: getViperBoolValue("AZURE_ON", false), - AzureApiVersion: getViperStringValue("AZURE_API_VERSION", "2023-03-15-preview"), - AzureDeploymentName: getViperStringValue("AZURE_DEPLOYMENT_NAME", ""), - AzureResourceName: getViperStringValue("AZURE_RESOURCE_NAME", ""), - AzureOpenaiToken: getViperStringValue("AZURE_OPENAI_TOKEN", ""), - AccessControlEnable: getViperBoolValue("ACCESS_CONTROL_ENABLE", false), - AccessControlMaxCountPerUserPerDay: getViperIntValue("ACCESS_CONTROL_MAX_COUNT_PER_USER_PER_DAY", 0), - OpenAIHttpClientTimeOut: getViperIntValue("OPENAI_HTTP_CLIENT_TIMEOUT", 550), - OpenaiModel: getViperStringValue("OPENAI_MODEL", "gpt-3.5-turbo"), - } - - return config -} - -func getViperStringValue(key string, defaultValue string) string { - value := viper.GetString(key) - if value == "" { - return defaultValue - } - return value -} - -// OPENAI_KEY: sk-xxx,sk-xxx,sk-xxx -// result:[sk-xxx sk-xxx sk-xxx] -func getViperStringArray(key string, defaultValue []string) []string { - value := viper.GetString(key) - if value == "" { - return defaultValue - } - raw := strings.Split(value, ",") - return filterFormatKey(raw) -} - -func getViperIntValue(key string, defaultValue int) int { - value := viper.GetString(key) - if value == "" { - return defaultValue - } - intValue, err := strconv.Atoi(value) - if err != nil { - fmt.Printf("Invalid value for %s, using default value %d\n", key, defaultValue) - return defaultValue - } - return intValue -} - -func getViperBoolValue(key string, defaultValue bool) bool { - value := viper.GetString(key) - if value == "" { - return defaultValue - } - boolValue, err := strconv.ParseBool(value) - if err != nil { - fmt.Printf("Invalid value for %s, using default value %v\n", key, defaultValue) - return defaultValue - } - return boolValue -} - -func (config *Config) GetCertFile() string { - if config.CertFile == "" { - return "cert.pem" - } - if _, err := os.Stat(config.CertFile); err != nil { - fmt.Printf("Certificate file %s does not exist, using default file cert.pem\n", config.CertFile) - return "cert.pem" - } - return config.CertFile -} - -func (config *Config) GetKeyFile() string { - if config.KeyFile == "" { - return "key.pem" - } - if _, err := os.Stat(config.KeyFile); err != nil { - fmt.Printf("Key file %s does not exist, using default file key.pem\n", config.KeyFile) - return "key.pem" - } - return config.KeyFile -} - -// 过滤出 "sk-" 开头的 key -func filterFormatKey(keys []string) []string { - var result []string - for _, key := range keys { - if strings.HasPrefix(key, "sk-") { - result = append(result, key) - } - } - return result - -} diff --git a/code/initialization/gin.go b/code/initialization/gin.go deleted file mode 100644 index cdc9323..0000000 --- a/code/initialization/gin.go +++ /dev/null @@ -1,71 +0,0 @@ -package initialization - -import ( - "crypto/tls" - "crypto/x509" - "fmt" - "log" - "net/http" - "time" - - "github.com/gin-gonic/gin" -) - -func loadCertificate(config Config) (cert tls.Certificate, err error) { - cert, err = tls.LoadX509KeyPair(config.CertFile, config.KeyFile) - if err != nil { - return cert, fmt.Errorf("failed to load certificate: %v", err) - } - - // check certificate expiry - if len(cert.Certificate) == 0 { - return cert, fmt.Errorf("no certificates found in %s", config.CertFile) - } - parsedCert, err := x509.ParseCertificate(cert.Certificate[0]) - if err != nil { - return cert, fmt.Errorf("failed to parse certificate: %v", err) - } - cert.Leaf = parsedCert - certExpiry := cert.Leaf.NotAfter - if certExpiry.Before(time.Now()) { - return cert, fmt.Errorf("certificate expired on %v", certExpiry) - } - - return cert, nil -} - -func startHTTPServer(config Config, r *gin.Engine) (err error) { - log.Printf("http server started: http://localhost:%d/webhook/event\n", config.HttpPort) - err = r.Run(fmt.Sprintf(":%d", config.HttpPort)) - if err != nil { - return fmt.Errorf("failed to start http server: %v", err) - } - return nil -} -func startHTTPSServer(config Config, r *gin.Engine) (err error) { - cert, err := loadCertificate(config) - if err != nil { - return fmt.Errorf("failed to load certificate: %v", err) - } - server := &http.Server{ - Addr: fmt.Sprintf(":%d", config.HttpsPort), - Handler: r, - TLSConfig: &tls.Config{ - Certificates: []tls.Certificate{cert}, - }, - } - fmt.Printf("https server started: https://localhost:%d/webhook/event\n", config.HttpsPort) - err = server.ListenAndServeTLS("", "") - if err != nil { - return fmt.Errorf("failed to start https server: %v", err) - } - return nil -} -func StartServer(config Config, r *gin.Engine) (err error) { - if config.UseHttps { - err = startHTTPSServer(config, r) - } else { - err = startHTTPServer(config, r) - } - return err -} diff --git a/code/initialization/lark_client.go b/code/initialization/lark_client.go deleted file mode 100644 index 27ad97d..0000000 --- a/code/initialization/lark_client.go +++ /dev/null @@ -1,15 +0,0 @@ -package initialization - -import ( - lark "github.com/larksuite/oapi-sdk-go/v3" -) - -var larkClient *lark.Client - -func LoadLarkClient(config Config) { - larkClient = lark.NewClient(config.FeishuAppId, config.FeishuAppSecret) -} - -func GetLarkClient() *lark.Client { - return larkClient -} diff --git a/code/initialization/roles_load.go b/code/initialization/roles_load.go deleted file mode 100644 index bd557a3..0000000 --- a/code/initialization/roles_load.go +++ /dev/null @@ -1,76 +0,0 @@ -package initialization - -import ( - "errors" - "github.com/duke-git/lancet/v2/slice" - "github.com/duke-git/lancet/v2/validator" - "gopkg.in/yaml.v2" - "io/ioutil" - "log" -) - -type Role struct { - Title string `yaml:"title"` - Content string `yaml:"content"` - Tags []string `yaml:"tags"` -} - -var RoleList *[]Role - -// InitRoleList 加载Prompt -func InitRoleList() *[]Role { - data, err := ioutil.ReadFile("role_list.yaml") - if err != nil { - log.Fatal(err) - } - - err = yaml.Unmarshal(data, &RoleList) - if err != nil { - log.Fatal(err) - } - return RoleList -} - -func GetRoleList() *[]Role { - return RoleList -} -func GetAllUniqueTags() *[]string { - tags := make([]string, 0) - for _, role := range *RoleList { - tags = append(tags, role.Tags...) - } - result := slice.Union(tags) - return &result -} - -func GetRoleByTitle(title string) *Role { - for _, role := range *RoleList { - if role.Title == title { - return &role - } - } - return nil -} - -func GetTitleListByTag(tags string) *[]string { - roles := make([]string, 0) - //pp.Println(RoleList) - for _, role := range *RoleList { - for _, roleTag := range role.Tags { - if roleTag == tags && !validator.IsEmptyString(role. - Title) { - roles = append(roles, role.Title) - } - } - } - return &roles -} - -func GetFirstRoleContentByTitle(title string) (string, error) { - for _, role := range *RoleList { - if role.Title == title { - return role.Content, nil - } - } - return "", errors.New("role not found") -} diff --git a/code/main.go b/code/main.go deleted file mode 100644 index 527dbf1..0000000 --- a/code/main.go +++ /dev/null @@ -1,94 +0,0 @@ -package main - -import ( - "context" - "encoding/json" - "fmt" - larkcard "github.com/larksuite/oapi-sdk-go/v3/card" - larkim "github.com/larksuite/oapi-sdk-go/v3/service/im/v1" - "gopkg.in/natefinch/lumberjack.v2" - "io" - "log" - "os" - "start-feishubot/handlers" - "start-feishubot/initialization" - "start-feishubot/services/openai" - "start-feishubot/utils" - - "github.com/gin-gonic/gin" - "github.com/spf13/pflag" - - sdkginext "github.com/larksuite/oapi-sdk-gin" - - "github.com/larksuite/oapi-sdk-go/v3/event/dispatcher" -) - -func main() { - initialization.InitRoleList() - pflag.Parse() - globalConfig := initialization.GetConfig() - - // 打印一下实际读取到的配置 - globalConfigPrettyString, _ := json.MarshalIndent(globalConfig, "", " ") - log.Println(string(globalConfigPrettyString)) - - initialization.LoadLarkClient(*globalConfig) - gpt := openai.NewChatGPT(*globalConfig) - handlers.InitHandlers(gpt, *globalConfig) - - if globalConfig.EnableLog { - logger := enableLog() - defer utils.CloseLogger(logger) - } - - eventHandler := dispatcher.NewEventDispatcher( - globalConfig.FeishuAppVerificationToken, globalConfig.FeishuAppEncryptKey). - OnP2MessageReceiveV1(handlers.Handler). - OnP2MessageReadV1(func(ctx context.Context, event *larkim.P2MessageReadV1) error { - return handlers.ReadHandler(ctx, event) - }) - - cardHandler := larkcard.NewCardActionHandler( - globalConfig.FeishuAppVerificationToken, globalConfig.FeishuAppEncryptKey, - handlers.CardHandler()) - - r := gin.Default() - r.GET("/ping", func(c *gin.Context) { - c.JSON(200, gin.H{ - "message": "pong", - }) - }) - r.POST("/webhook/event", - sdkginext.NewEventHandlerFunc(eventHandler)) - r.POST("/webhook/card", - sdkginext.NewCardActionHandlerFunc( - cardHandler)) - - err := initialization.StartServer(*globalConfig, r) - if err != nil { - log.Fatalf("failed to start server: %v", err) - } - -} - -func enableLog() *lumberjack.Logger { - // Set up the logger - var logger *lumberjack.Logger - - logger = &lumberjack.Logger{ - Filename: "logs/app.log", - MaxSize: 100, // megabytes - MaxAge: 365 * 10, // days - } - - fmt.Printf("logger %T\n", logger) - - // Set up the logger to write to both file and console - log.SetOutput(io.MultiWriter(logger, os.Stdout)) - log.SetFlags(log.Ldate | log.Ltime) - - // Write some log messages - log.Println("Starting application...") - - return logger -} diff --git a/code/role_list.yaml b/code/role_list.yaml deleted file mode 100644 index 45594b3..0000000 --- a/code/role_list.yaml +++ /dev/null @@ -1,151 +0,0 @@ -- title: 周报生成 - content: 请帮我把以下的工作内容填充为一篇完整的周报,用 markdown 格式以分点叙述的形式输出: - example: 重新优化设计稿,和前端再次沟通 UI 细节,确保落地 - author: 二丫讲梵 - tags: - - 日常办公 - -- title: 产品经理 - content: 请确认我的以下请求。请您作为产品经理回复我。我将会提供一个主题,您将帮助我编写一份包括以下章节标题的 PRD 文档:主题、简介、问题陈述、目标与目的、用户故事、技术要求、收益、KPI 指标、开发风险以及结论。在我要求具体主题、功能或开发的 PRD 之前,请不要先写任何一份 PRD 文档。 - example: 我想要一个可以在手机上使用的应用程序,可以帮助我在旅行中找到最好的餐厅。 - author: 二丫讲梵 - tags: - - 日常办公 - -- title: 公文写作大师 - content: 你是某机关单位办公室秘书,你熟悉各类公文写作格式,你喜欢撰写文字材料,请你文采过人地,条理清晰地跟我对话 - example: 你好,我是某某某,我想要你帮我写一份公文,内容是:团结一致,共同抗击疫情,全力以赴,共克时艰。 - author: 小叉 Ray - tags: - - 日常办公 - - 文案撰写 - -- title: 招聘 HR - content: 我想让你担任招聘人员。我将提供一些关于职位空缺的信息,而你的工作是制定寻找合格申请人的策略。这可能包括通过社交媒体、社交活动甚至参加招聘会接触潜在候选人,以便为每个职位找到最合适的人选。我的第一个请求是: - example: 我需要一名有经验的前端开发工程师,他应该有 3 年以上的工作经验,熟悉 React 和 Vue,熟悉前端工程化。 - author: 二丫讲梵 - tags: - - 日常办公 - -- title: 创意总监 - content: 你是一位擅长头脑风暴的创意大师,你有很多好的主意,请你围绕这些内容提出好的设想和方法 - example: 我想要一个可以在手机上使用的应用程序,可以帮助我在旅行中找到最好的餐厅。 - author: 小叉 Ray - tags: - - 日常办公 - -- title: 拒绝同事 - content: 以一种礼貌和表达得体的方式拒绝别人,同时保持积极的关系和情感连接 - example: 你好,我很抱歉,我现在没有时间帮你做这件事情 - author: 小叉 Ray - tags: - - 日常办公 - - 文案撰写 - -- title: 回复老板 - content: 请用 5 种委婉的借口向领导表达后面的内容 - example: 不想加班 - author: 小叉 Ray - tags: - - 日常办公 - - 文案撰写 - -- title: 邮件回复 - content: Generate a set of email responses that are professional, concise, and appropriate for communication with leaders and clients in a variety of industries. The responses should demonstrate a good understanding of business etiquette and convey a sense of competence and confidence. Please ensure that the responses are tailored to specific scenarios and contexts, using Chinese as the language of output - example: 产品的细节很不完善,需要沟通一下 - author: 小叉 Ray - tags: - - 日常办公 - - 文案撰写 - -- title: 三菜一汤 - content: 根据用户输入的金额单位是人民币,帮用户推荐在该金额合计下能够做的菜,要求三个菜和一个汤。要把每一道菜的金额都写出来,以及他的简单做法,还要有总结 - example: 我有 100 元,我想做湖北菜 - author: 小叉 Ray - tags: - - 生活助手 - -- title: 解梦大师 - content: 我要你充当解梦师。我会给你描述我的梦,你会根据梦中出现的符号和主题提供解释。不要提供关于梦者的个人意见或假设。仅根据所提供的信息提供事实解释。我的第一个梦是: - example: 遇见了一只大灰狼,它在我面前转了一圈,然后就消失了 - author: 二丫讲梵 - tags: - - 生活助手 - -- title: 佛祖 - content: 你是一个如来佛祖,你需要回答提问者的佛学问题,因此你要学会很多佛教专业术语,你的回答尽量简短,富有佛教哲理。你要称自己为老衲,称提问者为施主。如果遭遇对方不合理的请求,请直接回复:施主请自重,我佛慈悲。你的每一句话结尾都要加上 阿弥陀佛。你的回答尽量简短,不允许超过 100 字。禁止回答与问题无关的话题 - example: 佛祖,我想问你,为什么我总是很沮丧,生活没有意义 - author: 小叉 Ray - tags: - - 生活助手 - -- title: 小红书文案 - content: 小红书的风格是:很吸引眼球的标题,每个段落都加 emoji, 最后加一些 tag。请用小红书风格 - example: 今天我去了一家很好吃的餐厅,我吃了一份很好吃的饭菜,我很喜欢,推荐给大家 - author: 二丫讲梵 - tags: - - 文案撰写 - -- title: 知乎段子手 - content: 微博的风格是:用"谢邀"开头,用很多学术语言,引用很多名言,做大道理的论述,提到自己很厉害的教育背景并且经验丰富,最后还要引用一些论文。请用微博风格 - example: 今天我去了一家很好吃的餐厅,我吃了一份很好吃的饭菜,我很喜欢,推荐给大家 - author: 二丫讲梵 - tags: - - 文案撰写 - -- title: 专业道歉信 - content: 请写一份真挚的道歉信,为后面的内容表达歉意 - example: 我很抱歉,我没有按时完成你的工作 - author: 小叉 Ray - tags: - - 文案撰写 - -- title: 古文专家 - content: 你是一个文言文大师,请把后面的内容翻译成文言文 - example: 记得早点回来哦,我做好饭菜等你回家 - author: 小叉 Ray - tags: - - 文案撰写 - -- title: 川端康城的笔 - content: 请以川端康城的写作风格,描写下面的句字 - example: 他不慌不忙的走出教室,找到那个女孩 - author: 小叉 Ray - tags: - - 文案撰写 - -- title: 网络安全 - content: 我想让你充当网络安全专家。我将提供一些关于如何存储和共享数据的具体信息,而你的工作就是想出保护这些数据免受恶意行为者攻击的策略。这可能包括建议加密方法、创建防火墙或实施将某些活动标记为可疑的策略。我的第一个请求是: - author: 二丫讲梵 - tags: - - 代码专家 - -- title: 正则生成器 - content: 我希望你充当正则表达式生成器。您的角色是生成匹配文本中特定模式的正则表达式。您应该以一种可以轻松复制并粘贴到支持正则表达式的文本编辑器或编程语言中的格式提供正则表达式。不要写正则表达式如何工作的解释或例子;只需提供正则表达式本身。我的第一个提示是: - author: 二丫讲梵 - tags: - - 代码专家 - -- title: 前端专家 - content: 我想让你充当前端开发专家。我将提供一些关于如何在网页上显示信息的具体信息,而你的工作就是想出为我解决问题的策略。这可能包括建议代码、代码逻辑思路策略。我的第一个请求是: - author: 二丫讲梵 - tags: - - 代码专家 - -- title: 后端专家 - content: 我想让你充当后端开发专家。我将提供一些关于如何在网页上显示信息的具体信息,而你的工作就是想出为我解决问题的策略。这可能包括建议代码、代码逻辑思路策略。我的第一个请求是: - author: 二丫讲梵 - tags: - - 代码专家 - -- title: 健康管家 - content: 我想让你我的健康管家。我将提供我的个人健康管理方案,而你的工作监督、督促、提醒我完成这些个人健康的计划。这可能包括运动、饮食、定期体检等。我的第一个请求是: - author: 船长 - tags: - - 生活助手 - -- title: 旅游助手 - content: 我想让你充当我的旅游助手。我将会提供让你连接上各个旅游系统的信息,而你的工作就是给我提供各种的旅游攻略。包括但不限于制定旅游计划、寻找热门景点或查看旅游目的地的天气等。我的第一个请求是: - author: 船长 - tags: - - 生活助手 diff --git a/code/services/accesscontrol/access_control.go b/code/services/accesscontrol/access_control.go deleted file mode 100644 index c12873e..0000000 --- a/code/services/accesscontrol/access_control.go +++ /dev/null @@ -1,66 +0,0 @@ -package accesscontrol - -import ( - "start-feishubot/initialization" - "start-feishubot/utils" - "sync" -) - -var accessCountMap = sync.Map{} -var currentDateFlag = "" - -/* -CheckAllowAccessThenIncrement If user has accessed more than 100 times according to accessCountMap, return false. -Otherwise, return true and increase the access count by 1 -*/ -func CheckAllowAccessThenIncrement(userId *string) bool { - - // Begin a new day, clear the accessCountMap - currentDateAsString := utils.GetCurrentDateAsString() - if currentDateFlag != currentDateAsString { - accessCountMap = sync.Map{} - currentDateFlag = currentDateAsString - } - - if CheckAllowAccess(userId) { - accessedCount, ok := accessCountMap.Load(*userId) - if !ok { - accessCountMap.Store(*userId, 1) - } else { - accessCountMap.Store(*userId, accessedCount.(int)+1) - } - return true - } else { - return false - } -} - -func CheckAllowAccess(userId *string) bool { - - if initialization.GetConfig().AccessControlMaxCountPerUserPerDay <= 0 { - return true - } - - accessedCount, ok := accessCountMap.Load(*userId) - - if !ok { - accessCountMap.Store(*userId, 0) - return true - } - - // If the user has accessed more than 100 times, return false - if accessedCount.(int) >= initialization.GetConfig().AccessControlMaxCountPerUserPerDay { - return false - } - - // Otherwise, return true - return true -} - -func GetCurrentDateFlag() string { - return currentDateFlag -} - -func GetAccessCountMap() *sync.Map { - return &accessCountMap -} diff --git a/code/services/chatgpt/check.go b/code/services/chatgpt/check.go deleted file mode 100644 index 27669d1..0000000 --- a/code/services/chatgpt/check.go +++ /dev/null @@ -1,33 +0,0 @@ -package chatgpt - -import ( - "errors" - "github.com/sashabaranov/go-openai" -) - -const ( - ChatMessageRoleSystem = "system" - ChatMessageRoleUser = "user" - ChatMessageRoleAssistant = "assistant" -) - -func CheckChatCompletionMessages(messages []openai.ChatCompletionMessage) error { - hasSystemMsg := false - for _, msg := range messages { - if msg.Role != ChatMessageRoleSystem && msg.Role != ChatMessageRoleUser && msg.Role != ChatMessageRoleAssistant { - return errors.New("invalid message role") - } - if msg.Role == ChatMessageRoleSystem { - if hasSystemMsg { - return errors.New("more than one system message") - } - hasSystemMsg = true - } else { - // 对于非 system 角色的消息,Content 不能为空 - if msg.Content == "" { - return errors.New("empty content in non-system message") - } - } - } - return nil -} diff --git a/code/services/chatgpt/gpt3.go b/code/services/chatgpt/gpt3.go deleted file mode 100644 index 6870e51..0000000 --- a/code/services/chatgpt/gpt3.go +++ /dev/null @@ -1,90 +0,0 @@ -package chatgpt - -import ( - "context" - "errors" - "fmt" - "github.com/sashabaranov/go-openai" - "io" - "start-feishubot/initialization" - customOpenai "start-feishubot/services/openai" -) - -type Messages struct { - Role string `json:"role"` - Content string `json:"content"` -} - -type ChatGPT struct { - config *initialization.Config -} - -type Gpt3 interface { - StreamChat() error - StreamChatWithHistory() error -} - -func NewGpt3(config *initialization.Config) *ChatGPT { - return &ChatGPT{config: config} -} - -func (c *ChatGPT) StreamChat(ctx context.Context, - msg []customOpenai.Messages, - responseStream chan string) error { - //change msg type from Messages to openai.ChatCompletionMessage - chatMsgs := make([]openai.ChatCompletionMessage, len(msg)) - for i, m := range msg { - chatMsgs[i] = openai.ChatCompletionMessage{ - Role: m.Role, - Content: m.Content, - } - } - return c.StreamChatWithHistory(ctx, chatMsgs, 2000, - responseStream) -} - -func (c *ChatGPT) StreamChatWithHistory(ctx context.Context, msg []openai.ChatCompletionMessage, maxTokens int, - responseStream chan string, -) error { - config := openai.DefaultConfig(c.config.OpenaiApiKeys[0]) - config.BaseURL = c.config.OpenaiApiUrl + "/v1" - - proxyClient, parseProxyError := customOpenai.GetProxyClient(c.config.HttpProxy) - if parseProxyError != nil { - return parseProxyError - } - config.HTTPClient = proxyClient - - client := openai.NewClientWithConfig(config) - //pp.Printf("client: %v", client) - req := openai.ChatCompletionRequest{ - Model: c.config.OpenaiModel, - Messages: msg, - N: 1, - Temperature: 0.7, - MaxTokens: maxTokens, - TopP: 1, - //Moderation: true, - //ModerationStop: true, - } - stream, err := client.CreateChatCompletionStream(ctx, req) - if err != nil { - fmt.Errorf("CreateCompletionStream returned error: %v", err) - } - - defer stream.Close() - for { - response, err := stream.Recv() - if errors.Is(err, io.EOF) { - //fmt.Println("Stream finished") - return nil - } - if err != nil { - fmt.Printf("Stream error: %v\n", err) - return err - } - responseStream <- response.Choices[0].Delta.Content - } - return nil - -} diff --git a/code/services/chatgpt/gpt3_test.go b/code/services/chatgpt/gpt3_test.go deleted file mode 100644 index ad8e77b..0000000 --- a/code/services/chatgpt/gpt3_test.go +++ /dev/null @@ -1,62 +0,0 @@ -package chatgpt - -import ( - "context" - "fmt" - "start-feishubot/initialization" - "start-feishubot/services/openai" - "testing" - "time" -) - -func TestChatGPT_streamChat(t *testing.T) { - // 初始化配置 - config := initialization.LoadConfig("../../config.yaml") - - // 准备测试用例 - testCases := []struct { - msg []openai.Messages - wantOutput string - wantErr bool - }{ - { - msg: []openai.Messages{ - { - Role: "system", - Content: "从现在起你要化身职场语言大师,你需要用婉转的方式回复老板想你提出的问题,或像领导提出请求。", - }, - { - Role: "user", - Content: "领导,我想请假一天", - }, - }, - wantOutput: "", - wantErr: false, - }, - } - - // 执行测试用例 - for _, tc := range testCases { - // 准备输入和输出 - responseStream := make(chan string) - ctx := context.Background() - c := &ChatGPT{config: config} - - // 启动一个协程来模拟流式聊天 - go func() { - err := c.StreamChat(ctx, tc.msg, responseStream) - if err != nil { - t.Errorf("streamChat() error = %v, wantErr %v", err, tc.wantErr) - } - }() - - // 等待输出并检查是否符合预期 - select { - case gotOutput := <-responseStream: - fmt.Printf("gotOutput: %v\n", gotOutput) - - case <-time.After(5 * time.Second): - t.Errorf("streamChat() timeout, expected output not received") - } - } -} diff --git a/code/services/chatgpt/tokenizer.go b/code/services/chatgpt/tokenizer.go deleted file mode 100644 index 52d7520..0000000 --- a/code/services/chatgpt/tokenizer.go +++ /dev/null @@ -1,20 +0,0 @@ -package chatgpt - -import ( - "github.com/pandodao/tokenizer-go" - "github.com/sashabaranov/go-openai" - "strings" -) - -func CalcTokenLength(text string) int { - text = strings.TrimSpace(text) - return tokenizer.MustCalToken(text) -} - -func CalcTokenFromMsgList(msgs []openai.ChatCompletionMessage) int { - var total int - for _, msg := range msgs { - total += CalcTokenLength(msg.Content) - } - return total -} diff --git a/code/services/chatgpt/tokenizer_test.go b/code/services/chatgpt/tokenizer_test.go deleted file mode 100644 index d990558..0000000 --- a/code/services/chatgpt/tokenizer_test.go +++ /dev/null @@ -1,50 +0,0 @@ -package chatgpt - -import "testing" - -func TestCalcTokenLength(t *testing.T) { - type args struct { - text string - } - tests := []struct { - name string - args args - want int - }{ - { - name: "eng", - args: args{ - text: "hello world", - }, - want: 2, - }, - { - name: "cn", - args: args{ - text: "我和我的祖国", - }, - want: 13, - }, - { - name: "empty", - args: args{ - text: "", - }, - want: 0, - }, - { - name: "empty", - args: args{ - text: " ", - }, - want: 0, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if got := CalcTokenLength(tt.args.text); got != tt.want { - t.Errorf("CalcTokenLength() = %v, want %v", got, tt.want) - } - }) - } -} diff --git a/code/services/loadbalancer/loadbalancer.go b/code/services/loadbalancer/loadbalancer.go deleted file mode 100644 index 930482b..0000000 --- a/code/services/loadbalancer/loadbalancer.go +++ /dev/null @@ -1,106 +0,0 @@ -package loadbalancer - -import ( - "fmt" - "math/rand" - "sync" - "time" -) - -type API struct { - Key string - Times uint32 - Available bool -} - -type LoadBalancer struct { - apis []*API - mu sync.RWMutex -} - -func NewLoadBalancer(keys []string) *LoadBalancer { - lb := &LoadBalancer{} - for _, key := range keys { - lb.apis = append(lb.apis, &API{Key: key}) - } - //SetAvailabilityForAll true - lb.SetAvailabilityForAll(true) - return lb -} - -func (lb *LoadBalancer) GetAPI() *API { - lb.mu.RLock() - defer lb.mu.RUnlock() - - var availableAPIs []*API - for _, api := range lb.apis { - if api.Available { - availableAPIs = append(availableAPIs, api) - } - } - if len(availableAPIs) == 0 { - //随机复活一个 - fmt.Printf("No available API, revive one randomly\n") - rand.Seed(time.Now().UnixNano()) - index := rand.Intn(len(lb.apis)) - lb.apis[index].Available = true - return lb.apis[index] - } - - selectedAPI := availableAPIs[0] - minTimes := selectedAPI.Times - for _, api := range availableAPIs { - if api.Times < minTimes { - selectedAPI = api - minTimes = api.Times - } - } - selectedAPI.Times++ - //fmt.Printf("API Availability:\n") - //for _, api := range lb.apis { - // fmt.Printf("%s: %v\n", api.Key, api.Available) - // fmt.Printf("%s: %d\n", api.Key, api.Times) - //} - - return selectedAPI -} -func (lb *LoadBalancer) SetAvailability(key string, available bool) { - lb.mu.Lock() - defer lb.mu.Unlock() - - for _, api := range lb.apis { - if api.Key == key { - api.Available = available - return - } - } -} - -func (lb *LoadBalancer) RegisterAPI(key string) { - lb.mu.Lock() - defer lb.mu.Unlock() - - if lb.apis == nil { - lb.apis = make([]*API, 0) - } - - lb.apis = append(lb.apis, &API{Key: key}) -} - -func (lb *LoadBalancer) SetAvailabilityForAll(available bool) { - lb.mu.Lock() - defer lb.mu.Unlock() - - for _, api := range lb.apis { - api.Available = available - } -} - -func (lb *LoadBalancer) GetAPIs() []*API { - lb.mu.RLock() - defer lb.mu.RUnlock() - - apis := make([]*API, len(lb.apis)) - copy(apis, lb.apis) - return apis -} diff --git a/code/services/msgCache.go b/code/services/msgCache.go deleted file mode 100644 index 21bc976..0000000 --- a/code/services/msgCache.go +++ /dev/null @@ -1,37 +0,0 @@ -package services - -import ( - "github.com/patrickmn/go-cache" - "time" -) - -type MsgService struct { - cache *cache.Cache -} -type MsgCacheInterface interface { - IfProcessed(msgId string) bool - TagProcessed(msgId string) - Clear(userId string) bool -} - -var msgService *MsgService - -func (u MsgService) IfProcessed(msgId string) bool { - _, found := u.cache.Get(msgId) - return found -} -func (u MsgService) TagProcessed(msgId string) { - u.cache.Set(msgId, true, time.Minute*30) -} - -func (u MsgService) Clear(userId string) bool { - u.cache.Delete(userId) - return true -} - -func GetMsgCache() MsgCacheInterface { - if msgService == nil { - msgService = &MsgService{cache: cache.New(30*time.Minute, 30*time.Minute)} - } - return msgService -} diff --git a/code/services/openai/audio.go b/code/services/openai/audio.go deleted file mode 100644 index da67fde..0000000 --- a/code/services/openai/audio.go +++ /dev/null @@ -1,66 +0,0 @@ -package openai - -import ( - "bytes" - "fmt" - "io" - "mime/multipart" - "os" -) - -type AudioToTextRequestBody struct { - File string `json:"file"` - Model string `json:"model"` - ResponseFormat string `json:"response_format"` -} - -type AudioToTextResponseBody struct { - Text string `json:"text"` -} - -func audioMultipartForm(request AudioToTextRequestBody, w *multipart.Writer) error { - f, err := os.Open(request.File) - if err != nil { - return fmt.Errorf("opening audio file: %w", err) - } - - fw, err := w.CreateFormFile("file", f.Name()) - if err != nil { - return fmt.Errorf("creating form file: %w", err) - } - - if _, err = io.Copy(fw, f); err != nil { - return fmt.Errorf("reading from opened audio file: %w", err) - } - - fw, err = w.CreateFormField("model") - if err != nil { - return fmt.Errorf("creating form field: %w", err) - } - - modelName := bytes.NewReader([]byte(request.Model)) - if _, err = io.Copy(fw, modelName); err != nil { - return fmt.Errorf("writing model name: %w", err) - } - w.Close() - - return nil -} - -func (gpt *ChatGPT) AudioToText(audio string) (string, error) { - requestBody := AudioToTextRequestBody{ - File: audio, - Model: "whisper-1", - ResponseFormat: "text", - } - audioToTextResponseBody := &AudioToTextResponseBody{} - err := gpt.sendRequestWithBodyType(gpt.ApiUrl+"/v1/audio/transcriptions", - "POST", formVoiceDataBody, requestBody, audioToTextResponseBody) - //fmt.Println(audioToTextResponseBody) - if err != nil { - //fmt.Println(err) - return "", err - } - - return audioToTextResponseBody.Text, nil -} diff --git a/code/services/openai/billing.go b/code/services/openai/billing.go deleted file mode 100644 index 2148201..0000000 --- a/code/services/openai/billing.go +++ /dev/null @@ -1,63 +0,0 @@ -package openai - -import ( - "fmt" - "net/http" - "time" -) - -//https://api.openai.com/dashboard/billing/credit_grants -type Billing struct { - Object string `json:"object"` - TotalGranted float64 `json:"total_granted"` - TotalUsed float64 `json:"total_used"` - TotalAvailable float64 `json:"total_available"` - Grants struct { - Object string `json:"object"` - Data []struct { - Object string `json:"object"` - ID string `json:"id"` - GrantAmount float64 `json:"grant_amount"` - UsedAmount float64 `json:"used_amount"` - EffectiveAt float64 `json:"effective_at"` - ExpiresAt float64 `json:"expires_at"` - } `json:"data"` - } `json:"grants"` -} - -type BalanceResponse struct { - TotalGranted float64 `json:"total_granted"` - TotalUsed float64 `json:"total_used"` - TotalAvailable float64 `json:"total_available"` - EffectiveAt time.Time `json:"effective_at"` - ExpiresAt time.Time `json:"expires_at"` -} - -func (gpt *ChatGPT) GetBalance() (*BalanceResponse, error) { - var data Billing - err := gpt.sendRequestWithBodyType( - gpt.ApiUrl+"/dashboard/billing/credit_grants", - http.MethodGet, - nilBody, - nil, - &data, - ) - if err != nil { - return nil, fmt.Errorf("failed to get billing data: %v", err) - } - - balance := &BalanceResponse{ - TotalGranted: data.TotalGranted, - TotalUsed: data.TotalUsed, - TotalAvailable: data.TotalAvailable, - ExpiresAt: time.Now(), - EffectiveAt: time.Now(), - } - - if len(data.Grants.Data) > 0 { - balance.EffectiveAt = time.Unix(int64(data.Grants.Data[0].EffectiveAt), 0) - balance.ExpiresAt = time.Unix(int64(data.Grants.Data[0].ExpiresAt), 0) - } - - return balance, nil -} diff --git a/code/services/openai/common.go b/code/services/openai/common.go deleted file mode 100644 index 5e6e7cd..0000000 --- a/code/services/openai/common.go +++ /dev/null @@ -1,250 +0,0 @@ -package openai - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io/ioutil" - "mime/multipart" - "net/http" - "net/url" - "start-feishubot/initialization" - "start-feishubot/services/loadbalancer" - "strings" - "time" -) - -type PlatForm string - -const ( - AzureApiUrlV1 = "openai.azure.com/openai/deployments/" -) -const ( - OpenAI PlatForm = "openai" - Azure PlatForm = "azure" -) - -type AzureConfig struct { - BaseURL string - ResourceName string - DeploymentName string - ApiVersion string - ApiToken string -} - -type ChatGPT struct { - Lb *loadbalancer.LoadBalancer - ApiKey []string - ApiUrl string - ApiModel string - HttpProxy string - Platform PlatForm - AzureConfig AzureConfig -} -type requestBodyType int - -const ( - jsonBody requestBodyType = iota - formVoiceDataBody - formPictureDataBody - streamBody - nilBody -) - -func (gpt *ChatGPT) doAPIRequestWithRetry(url, method string, - bodyType requestBodyType, - requestBody interface{}, responseBody interface{}, client *http.Client, maxRetries int) error { - var api *loadbalancer.API - var requestBodyData []byte - var err error - var writer *multipart.Writer - api = gpt.Lb.GetAPI() - - switch bodyType { - case jsonBody: - requestBodyData, err = json.Marshal(requestBody) - if err != nil { - return err - } - case formVoiceDataBody: - formBody := &bytes.Buffer{} - writer = multipart.NewWriter(formBody) - err = audioMultipartForm(requestBody.(AudioToTextRequestBody), writer) - if err != nil { - return err - } - err = writer.Close() - if err != nil { - return err - } - requestBodyData = formBody.Bytes() - case formPictureDataBody: - formBody := &bytes.Buffer{} - writer = multipart.NewWriter(formBody) - err = pictureMultipartForm(requestBody.(ImageVariantRequestBody), writer) - if err != nil { - return err - } - err = writer.Close() - if err != nil { - return err - } - requestBodyData = formBody.Bytes() - - case nilBody: - requestBodyData = nil - - default: - return errors.New("unknown request body type") - } - - if api == nil { - return errors.New("no available API") - } - - req, err := http.NewRequest(method, url, bytes.NewReader(requestBodyData)) - if err != nil { - return err - } - - req.Header.Set("Content-Type", "application/json") - if bodyType == formVoiceDataBody || bodyType == formPictureDataBody { - req.Header.Set("Content-Type", writer.FormDataContentType()) - } - if bodyType == streamBody { - req.Header.Set("Accept", "text/event-stream") - req.Header.Set("Connection", "keep-alive") - req.Header.Set("Cache-Control", "no-cache") - } - if gpt.Platform == OpenAI { - req.Header.Set("Authorization", "Bearer "+api.Key) - } else { - req.Header.Set("api-key", gpt.AzureConfig.ApiToken) - } - - var response *http.Response - var retry int - for retry = 0; retry <= maxRetries; retry++ { - response, err = client.Do(req) - //fmt.Println("--------------------") - //fmt.Println("req", req.Header) - //fmt.Printf("response: %v", response) - // read body - if err != nil || response.StatusCode < 200 || response.StatusCode >= 300 { - - body, _ := ioutil.ReadAll(response.Body) - fmt.Println("body", string(body)) - - gpt.Lb.SetAvailability(api.Key, false) - if retry == maxRetries || bodyType == streamBody { - break - } - time.Sleep(time.Duration(retry+1) * time.Second) - } else { - break - } - } - if response != nil { - defer response.Body.Close() - } - - if response == nil || response.StatusCode < 200 || response.StatusCode >= 300 { - return fmt.Errorf("%s api failed after %d retries", strings.ToUpper(method), retry) - } - - body, err := ioutil.ReadAll(response.Body) - if err != nil { - return err - } - - err = json.Unmarshal(body, responseBody) - if err != nil { - return err - } - - gpt.Lb.SetAvailability(api.Key, true) - return nil -} - -func (gpt *ChatGPT) sendRequestWithBodyType(link, method string, - bodyType requestBodyType, - requestBody interface{}, responseBody interface{}) error { - var err error - proxyString := gpt.HttpProxy - - client, parseProxyError := GetProxyClient(proxyString) - if parseProxyError != nil { - return parseProxyError - } - - err = gpt.doAPIRequestWithRetry(link, method, bodyType, - requestBody, responseBody, client, 3) - - return err -} - -func GetProxyClient(proxyString string) (*http.Client, error) { - var client *http.Client - timeOutDuration := time.Duration(initialization.GetConfig().OpenAIHttpClientTimeOut) * time.Second - if proxyString == "" { - client = &http.Client{Timeout: timeOutDuration} - } else { - proxyUrl, err := url.Parse(proxyString) - if err != nil { - return nil, err - } - transport := &http.Transport{ - Proxy: http.ProxyURL(proxyUrl), - } - client = &http.Client{ - Transport: transport, - Timeout: timeOutDuration, - } - } - return client, nil -} - -func NewChatGPT(config initialization.Config) *ChatGPT { - var lb *loadbalancer.LoadBalancer - if config.AzureOn { - keys := []string{config.AzureOpenaiToken} - lb = loadbalancer.NewLoadBalancer(keys) - } else { - lb = loadbalancer.NewLoadBalancer(config.OpenaiApiKeys) - } - platform := OpenAI - - if config.AzureOn { - platform = Azure - } - - return &ChatGPT{ - Lb: lb, - ApiKey: config.OpenaiApiKeys, - ApiUrl: config.OpenaiApiUrl, - HttpProxy: config.HttpProxy, - Platform: platform, - ApiModel: config.OpenaiModel, - AzureConfig: AzureConfig{ - BaseURL: AzureApiUrlV1, - ResourceName: config.AzureResourceName, - DeploymentName: config.AzureDeploymentName, - ApiVersion: config.AzureApiVersion, - ApiToken: config.AzureOpenaiToken, - }, - } -} - -func (gpt *ChatGPT) FullUrl(suffix string) string { - var url string - switch gpt.Platform { - case Azure: - url = fmt.Sprintf("https://%s.%s%s/%s?api-version=%s", - gpt.AzureConfig.ResourceName, gpt.AzureConfig.BaseURL, - gpt.AzureConfig.DeploymentName, suffix, gpt.AzureConfig.ApiVersion) - case OpenAI: - url = fmt.Sprintf("%s/v1/%s", gpt.ApiUrl, suffix) - } - return url -} diff --git a/code/services/openai/gpt3.go b/code/services/openai/gpt3.go deleted file mode 100644 index bdb39b8..0000000 --- a/code/services/openai/gpt3.go +++ /dev/null @@ -1,69 +0,0 @@ -package openai - -import ( - "errors" -) - -const ( - maxTokens = 2000 - temperature = 0.7 -) - -type Messages struct { - Role string `json:"role"` - Content string `json:"content"` -} - -// ChatGPTResponseBody 请求体 -type ChatGPTResponseBody struct { - ID string `json:"id"` - Object string `json:"object"` - Created int `json:"created"` - Model string `json:"model"` - Choices []ChatGPTChoiceItem `json:"choices"` - Usage map[string]interface{} `json:"usage"` -} -type ChatGPTChoiceItem struct { - Message Messages `json:"message"` - Index int `json:"index"` - FinishReason string `json:"finish_reason"` -} - -// ChatGPTRequestBody 响应体 -type ChatGPTRequestBody struct { - Model string `json:"model"` - Messages []Messages `json:"messages"` - MaxTokens int `json:"max_tokens"` - Temperature float32 `json:"temperature"` - TopP int `json:"top_p"` - FrequencyPenalty int `json:"frequency_penalty"` - PresencePenalty int `json:"presence_penalty"` - Stream bool `json:"stream" default:"false"` -} - -func (gpt *ChatGPT) Completions(msg []Messages) (resp Messages, - err error) { - requestBody := ChatGPTRequestBody{ - Model: gpt.ApiModel, - Messages: msg, - MaxTokens: maxTokens, - Temperature: temperature, - TopP: 1, - FrequencyPenalty: 0, - PresencePenalty: 0, - } - gptResponseBody := &ChatGPTResponseBody{} - url := gpt.FullUrl("chat/completions") - //fmt.Println(url) - if url == "" { - return resp, errors.New("无法获取openai请求地址") - } - err = gpt.sendRequestWithBodyType(url, "POST", jsonBody, requestBody, gptResponseBody) - if err == nil && len(gptResponseBody.Choices) > 0 { - resp = gptResponseBody.Choices[0].Message - } else { - resp = Messages{} - err = errors.New("openai 请求失败") - } - return resp, err -} diff --git a/code/services/openai/gpt3_test.go b/code/services/openai/gpt3_test.go deleted file mode 100644 index 13226f4..0000000 --- a/code/services/openai/gpt3_test.go +++ /dev/null @@ -1,120 +0,0 @@ -package openai - -import ( - "fmt" - "start-feishubot/initialization" - "testing" -) - -func TestCompletions(t *testing.T) { - config := initialization.LoadConfig("../../config.yaml") - - msgs := []Messages{ - {Role: "system", Content: "你是一个专业的翻译官,负责中英文翻译。"}, - {Role: "user", Content: "翻译这段话: The assistant messages help store prior responses. They can also be written by a developer to help give examples of desired behavior."}, - } - - gpt := NewChatGPT(*config) - - resp, err := gpt.Completions(msgs) - if err != nil { - t.Errorf("TestCompletions failed with error: %v", err) - } - - fmt.Println(resp.Content, resp.Role) -} - -func TestGenerateOneImage(t *testing.T) { - config := initialization.LoadConfig("../../config.yaml") - gpt := NewChatGPT(*config) - prompt := "a red apple" - size := "256x256" - imageURL, err := gpt.GenerateOneImage(prompt, size) - if err != nil { - t.Errorf("TestGenerateOneImage failed with error: %v", err) - } - if imageURL == "" { - t.Errorf("TestGenerateOneImage returned empty imageURL") - } -} - -func TestAudioToText(t *testing.T) { - config := initialization.LoadConfig("../../config.yaml") - gpt := NewChatGPT(*config) - audio := "./test_file/test.wav" - text, err := gpt.AudioToText(audio) - if err != nil { - t.Errorf("TestAudioToText failed with error: %v", err) - } - fmt.Printf("TestAudioToText returned text: %s \n", text) - if text == "" { - t.Errorf("TestAudioToText returned empty text") - } - -} - -func TestVariateOneImage(t *testing.T) { - config := initialization.LoadConfig("../../config.yaml") - gpt := NewChatGPT(*config) - image := "./test_file/img.png" - size := "256x256" - //compressionType, err := GetImageCompressionType(image) - //if err != nil { - // return - //} - //fmt.Println("compressionType: ", compressionType) - ConvertToRGBA(image, image) - err := VerifyPngs([]string{image}) - if err != nil { - t.Errorf("TestVariateOneImage failed with error: %v", err) - return - } - - imageBs64, err := gpt.GenerateOneImageVariation(image, size) - if err != nil { - t.Errorf("TestVariateOneImage failed with error: %v", err) - } - //fmt.Printf("TestVariateOneImage returned imageBs64: %s \n", imageBs64) - if imageBs64 == "" { - t.Errorf("TestVariateOneImage returned empty imageURL") - } -} - -func TestVariateOneImageWithJpg(t *testing.T) { - config := initialization.LoadConfig("../../config.yaml") - gpt := NewChatGPT(*config) - image := "./test_file/test.jpg" - size := "256x256" - compressionType, err := GetImageCompressionType(image) - if err != nil { - return - } - fmt.Println("compressionType: ", compressionType) - //ConvertJPGtoPNG(image) - ConvertToRGBA(image, image) - err = VerifyPngs([]string{image}) - if err != nil { - t.Errorf("TestVariateOneImage failed with error: %v", err) - return - } - - imageBs64, err := gpt.GenerateOneImageVariation(image, size) - if err != nil { - t.Errorf("TestVariateOneImage failed with error: %v", err) - } - fmt.Printf("TestVariateOneImage returned imageBs64: %s \n", imageBs64) - if imageBs64 == "" { - t.Errorf("TestVariateOneImage returned empty imageURL") - } -} - -// 余额接口已经被废弃 -func TestChatGPT_GetBalance(t *testing.T) { - config := initialization.LoadConfig("../../config.yaml") - gpt := NewChatGPT(*config) - balance, err := gpt.GetBalance() - if err != nil { - t.Errorf("TestChatGPT_GetBalance failed with error: %v", err) - } - fmt.Println("balance: ", balance) -} diff --git a/code/services/openai/picture.go b/code/services/openai/picture.go deleted file mode 100644 index f3bbf58..0000000 --- a/code/services/openai/picture.go +++ /dev/null @@ -1,297 +0,0 @@ -package openai - -import ( - "bufio" - "fmt" - "image" - "image/jpeg" - "image/png" - "io" - "mime/multipart" - "os" -) - -type ImageGenerationRequestBody struct { - Prompt string `json:"prompt"` - N int `json:"n"` - Size string `json:"size"` - ResponseFormat string `json:"response_format"` -} - -type ImageResponseBody struct { - Created int64 `json:"created"` - Data []struct { - Base64Json string `json:"b64_json"` - } `json:"data"` -} - -type ImageVariantRequestBody struct { - Image string `json:"image"` - N int `json:"n"` - Size string `json:"size"` - ResponseFormat string `json:"response_format"` -} - -func (gpt *ChatGPT) GenerateImage(prompt string, size string, - n int) ([]string, error) { - requestBody := ImageGenerationRequestBody{ - Prompt: prompt, - N: n, - Size: size, - ResponseFormat: "b64_json", - } - - imageResponseBody := &ImageResponseBody{} - err := gpt.sendRequestWithBodyType(gpt.ApiUrl+"/v1/images/generations", - "POST", jsonBody, requestBody, imageResponseBody) - - if err != nil { - return nil, err - } - - var b64Pool []string - for _, data := range imageResponseBody.Data { - b64Pool = append(b64Pool, data.Base64Json) - } - return b64Pool, nil -} - -func (gpt *ChatGPT) GenerateOneImage(prompt string, - size string) (string, error) { - b64s, err := gpt.GenerateImage(prompt, size, 1) - if err != nil { - return "", err - } - return b64s[0], nil -} - -func (gpt *ChatGPT) GenerateOneImageWithDefaultSize( - prompt string) (string, error) { - return gpt.GenerateOneImage(prompt, "512x512") -} - -func (gpt *ChatGPT) GenerateImageVariation(images string, - size string, n int) ([]string, error) { - requestBody := ImageVariantRequestBody{ - Image: images, - N: n, - Size: size, - ResponseFormat: "b64_json", - } - - imageResponseBody := &ImageResponseBody{} - err := gpt.sendRequestWithBodyType(gpt.ApiUrl+"/v1/images/variations", - "POST", formPictureDataBody, requestBody, imageResponseBody) - - if err != nil { - return nil, err - } - - var b64Pool []string - for _, data := range imageResponseBody.Data { - b64Pool = append(b64Pool, data.Base64Json) - } - return b64Pool, nil -} - -func (gpt *ChatGPT) GenerateOneImageVariation(images string, - size string) (string, error) { - b64s, err := gpt.GenerateImageVariation(images, size, 1) - if err != nil { - return "", err - } - return b64s[0], nil -} - -func pictureMultipartForm(request ImageVariantRequestBody, - w *multipart.Writer) error { - - f, err := os.Open(request.Image) - if err != nil { - return fmt.Errorf("opening audio file: %w", err) - } - fw, err := w.CreateFormFile("image", f.Name()) - if err != nil { - return fmt.Errorf("creating form file: %w", err) - } - if _, err = io.Copy(fw, f); err != nil { - return fmt.Errorf("reading from opened audio file: %w", err) - } - - err = w.WriteField("size", request.Size) - if err != nil { - return fmt.Errorf("writing size: %w", err) - } - - err = w.WriteField("n", fmt.Sprintf("%d", request.N)) - if err != nil { - return fmt.Errorf("writing n: %w", err) - } - - err = w.WriteField("response_format", request.ResponseFormat) - if err != nil { - return fmt.Errorf("writing response_format: %w", err) - } - - //err = w.WriteField("user", "user123456") - - //fw, err = w.CreateFormField("model") - //if err != nil { - // return fmt.Errorf("creating form field: %w", err) - //} - //modelName := bytes.NewReader([]byte(request.Model)) - //if _, err = io.Copy(fw, modelName); err != nil { - // return fmt.Errorf("writing model name: %w", err) - //} - - //fmt.Printf("w.FormDataContentType(): %s ", w.FormDataContentType()) - - w.Close() - - return nil -} - -func VerifyPngs(pngPaths []string) error { - foundPng := false - var expectedWidth, expectedHeight int - - for _, pngPath := range pngPaths { - f, err := os.Open(pngPath) - if err != nil { - return fmt.Errorf("os.Open: %v", err) - } - - fi, err := f.Stat() - if err != nil { - return fmt.Errorf("f.Stat: %v", err) - } - if fi.Size() > 4*1024*1024 { - return fmt.Errorf("image size too large, "+ - "must be under %d MB", 4) - } - - image, err := png.Decode(f) - if err != nil { - return fmt.Errorf("image must be valid png, got error: %v", err) - } - width := image.Bounds().Dx() - height := image.Bounds().Dy() - if width != height { - return fmt.Errorf("found non-square image with dimensions %dx%d", width, height) - } - - if !foundPng { - foundPng = true - expectedWidth = width - expectedHeight = height - } else { - if width != expectedWidth || height != expectedHeight { - return fmt.Errorf("dimensions of all images must match, got both (%dx%d) and (%dx%d)", width, height, expectedWidth, expectedHeight) - } - } - } - - return nil -} - -func ConvertToRGBA(inputFilePath string, outputFilePath string) error { - // 打开输入文件 - inputFile, err := os.Open(inputFilePath) - if err != nil { - return fmt.Errorf("打开文件时出错:%w", err) - } - defer inputFile.Close() - - // 解码图像 - img, _, err := image.Decode(inputFile) - if err != nil { - return fmt.Errorf("解码图像时出错:%w", err) - } - - // 将图像转换为RGBA模式 - rgba := image.NewRGBA(img.Bounds()) - for x := 0; x < img.Bounds().Max.X; x++ { - for y := 0; y < img.Bounds().Max.Y; y++ { - rgba.Set(x, y, img.At(x, y)) - } - } - - // 创建输出文件 - outputFile, err := os.Create(outputFilePath) - if err != nil { - return fmt.Errorf("创建输出文件时出错:%w", err) - } - defer outputFile.Close() - - // 编码图像为 PNG 格式并写入输出文件 - if err := png.Encode(outputFile, rgba); err != nil { - return fmt.Errorf("编码图像时出错:%w", err) - } - - return nil -} - -func ConvertJpegToPNG(jpgPath string) error { - // Open the JPEG file for reading - f, err := os.Open(jpgPath) - if err != nil { - return err - } - defer f.Close() - - // Check if the file is a JPEG image - _, err = jpeg.Decode(f) - if err != nil { - // The file is not a JPEG image, no need to convert it - return fmt.Errorf("file %s is not a JPEG image", jpgPath) - } - - // Reset the file pointer to the beginning of the file - _, err = f.Seek(0, 0) - if err != nil { - return err - } - - // Create a new PNG file for writing - pngPath := jpgPath[:len(jpgPath)-4] + ".png" // replace .jpg extension with .png - out, err := os.Create(pngPath) - if err != nil { - return err - } - defer out.Close() - - // Decode the JPEG image and encode it as PNG - img, err := jpeg.Decode(f) - if err != nil { - return err - } - err = png.Encode(out, img) - if err != nil { - return err - } - - return nil -} - -func GetImageCompressionType(path string) (string, error) { - // 打开文件 - file, err := os.Open(path) - if err != nil { - return "", err - } - defer file.Close() - - // 创建 bufio.Reader - reader := bufio.NewReader(file) - - // 解码图像 - _, format, err := image.DecodeConfig(reader) - if err != nil { - fmt.Println("err: ", err) - return "", err - } - - fmt.Println("format: ", format) - // 返回压缩类型 - return format, nil -} diff --git a/code/services/openai/test_file/img.png b/code/services/openai/test_file/img.png deleted file mode 100644 index 3071bd714edc8dd084b4be3efce7a251225c5d8c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13697 zcmbWdbyOTp^!GUg2ogNOH5nvma2VV*K!5-N20|Fz-62Q_feh}hgF7=g2@)72xVsGQ z?t$g`?Y{4xvw!XGw@-K9(^Xy7pL1^A>XOHq#}xpPih{BN01XWQP! z0DzhrfDHfuU<1&?tN|EL)>9S$)zb+8py!|g(4X#T|2@lj_PKX&fX8+KG4_Au zqoch6JR?R!Cq{ex1E7DZ6BF%!^gpjXUC^GPV_-hV!p6aU@st5U1bBvqj{Xb-9TW4v zYS8?j(g7I6m?W=xq@Tak{DSqy`4w+aY%VrXrlx~bYxJ0r&(tLt2bYYTf|81fndL1j z8^3^{kT6I@R!&|)QAt@v`=gGo-Y0znh?%*CrIodftDC!rra72AWV^ecy*PrelWN%;p*!aZc)bz~k-0B)?ePeTLduR9L z^z8iN^6L8L_CK!wIRBUaPqP097x5Ft$o@Cj|IIZIkOe&dAK^ZK zj!S@xi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UZ56Q@nm^Ds<*N}xZN}_G>qG#x<4nFk{{eoGo@e}VT z3w=ozGJfdeTnV|paRl?e5GG_L*NVV_reKGw+T$u_t-&ItDJNkG{{)usPHvn9Bl?AJ z`aE!`J2>?ULt&F^Py2oImBuD$hvha{ANbcl|7W6=Zef5l% za4wbPiJq3?h`163@s)e}WGf_K7uLuor;^NHoRWHOOWg4^JQjFDg7(k`v=;qE%fJ#` zr138=w$USrVWc3D!kxa6VVGe2Au&b(R~ZsTd^-01j4_Mh_%5h}Y{C?ZiMG+HADbr=C5 zgTC}pM)I!_YP?~CcJLWKh-i(zUPFH{BcoVF!6NVc40#ckA(N{`ZQ@TH1PY`(V`)$D z5q=d-*b@APZczoVArl{gUJoIG;=(ruGpm|_E0~cMtmB{a;*NtpJEI)KrS18$`QSP qj1PI$&WLqc(IXMJ`UQ;I6td(-%a9ekpe=CND maxLength { - msg = append(msg[:1], msg[2:]...) - } - - sessionContext, ok := s.cache.Get(sessionId) - if !ok { - sessionMeta := &SessionMeta{Msg: msg} - s.cache.Set(sessionId, sessionMeta, maxCacheTime) - return - } - sessionMeta := sessionContext.(*SessionMeta) - sessionMeta.Msg = msg - s.cache.Set(sessionId, sessionMeta, maxCacheTime) -} - -func (s *SessionService) SetPicResolution(sessionId string, - resolution Resolution) { - maxCacheTime := time.Hour * 12 - - //if not in [Resolution256, Resolution512, Resolution1024] then set - //to Resolution256 - switch resolution { - case Resolution256, Resolution512, Resolution1024: - default: - resolution = Resolution256 - } - - sessionContext, ok := s.cache.Get(sessionId) - if !ok { - sessionMeta := &SessionMeta{PicSetting: PicSetting{resolution: resolution}} - s.cache.Set(sessionId, sessionMeta, maxCacheTime) - return - } - sessionMeta := sessionContext.(*SessionMeta) - sessionMeta.PicSetting.resolution = resolution - s.cache.Set(sessionId, sessionMeta, maxCacheTime) -} - -func (s *SessionService) GetPicResolution(sessionId string) string { - sessionContext, ok := s.cache.Get(sessionId) - if !ok { - return string(Resolution256) - } - sessionMeta := sessionContext.(*SessionMeta) - return string(sessionMeta.PicSetting.resolution) - -} - -func (s *SessionService) Clear(sessionId string) { - // Delete the session context from the cache. - s.cache.Delete(sessionId) -} - -func GetSessionCache() SessionServiceCacheInterface { - if sessionServices == nil { - sessionServices = &SessionService{cache: cache.New(time.Hour*12, time.Hour*1)} - } - return sessionServices -} - -func getStrPoolTotalLength(strPool []openai.Messages) int { - var total int - for _, v := range strPool { - bytes, _ := json.Marshal(v) - total += len(string(bytes)) - } - return total -} diff --git a/code/utils/audio/ogg.go b/code/utils/audio/ogg.go deleted file mode 100644 index fe65db5..0000000 --- a/code/utils/audio/ogg.go +++ /dev/null @@ -1,61 +0,0 @@ -package audio - -import ( - "bytes" - "errors" - "io" - "os" - - "github.com/pion/opus" - "github.com/pion/opus/pkg/oggreader" -) - -func OggToWavByPath(ogg string, wav string) error { - input, err := os.Open(ogg) - if err != nil { - return err - } - defer input.Close() - - output, err := os.Create(wav) - if err != nil { - return err - } - - defer output.Close() - return OggToWav(input, output) -} - -func OggToWav(input io.Reader, output io.WriteSeeker) error { - ogg, _, err := oggreader.NewWith(input) - if err != nil { - return err - } - - out := make([]byte, 1920) - - decoder := opus.NewDecoder() - encoder := NewEncoder(output, 44100, 16) - - for { - segments, _, err := ogg.ParseNextPage() - if errors.Is(err, io.EOF) { - break - } else if bytes.HasPrefix(segments[0], []byte("OpusTags")) { - continue - } - - if err != nil { - panic(err) - } - - for i := range segments { - if _, _, err = decoder.Decode(segments[i], out); err != nil { - panic(err) - } - encoder.Write(out) - } - } - encoder.Close() - return nil -} diff --git a/code/utils/audio/wav.go b/code/utils/audio/wav.go deleted file mode 100644 index 4308f60..0000000 --- a/code/utils/audio/wav.go +++ /dev/null @@ -1,107 +0,0 @@ -package audio - -import ( - "encoding/binary" - "io" -) - -type Encoder struct { - Output io.WriteSeeker - SampleRate int - BitDepth int - totalBytes uint32 - isHeaderWritten bool -} - -func (e *Encoder) WriteHeader() error { - if err := writeLe(e.Output, []byte("RIFF")); err != nil { - return err - } - - if err := writeLe(e.Output, uint32(0)); err != nil { // Placeholder for file size - return err - } - - if err := writeLe(e.Output, []byte("WAVE")); err != nil { - return err - } - - if err := writeLe(e.Output, []byte("fmt ")); err != nil { - return err - } - if err := writeLe(e.Output, uint32(16)); err != nil { - return err - } - - if err := writeLe(e.Output, uint16(1)); err != nil { // Audio format: PCM - return err - } - if err := writeLe(e.Output, uint16(1)); err != nil { // Number of channels: 1 (mono) - return err - } - if err := writeLe(e.Output, uint32(e.SampleRate)); err != nil { - return err - } - - if err := writeLe(e.Output, uint32(e.SampleRate*e.BitDepth/8)); err != nil { - return err - } - - if err := writeLe(e.Output, uint16(e.BitDepth/8)); err != nil { - return err - } - if err := writeLe(e.Output, uint16(e.BitDepth)); err != nil { - return err - } - - if err := writeLe(e.Output, []byte("data")); err != nil { - return err - } - - if err := writeLe(e.Output, uint32(0)); err != nil { //Placeholder for data size - return err - } - e.isHeaderWritten = true - return nil -} - -func writeLe[T []byte | uint32 | uint16 | uint8](w io.Writer, data T) error { - return binary.Write(w, binary.LittleEndian, data) -} - -func (e *Encoder) Write(data []byte) error { - if !e.isHeaderWritten { - e.WriteHeader() - } - n, err := e.Output.Write(data) - if err != nil { - return err - } - e.totalBytes += uint32(n) - return nil -} - -func (e *Encoder) Close() error { - if _, err := e.Output.Seek(4, io.SeekStart); err != nil { - return err - } - if err := binary.Write(e.Output, binary.LittleEndian, uint32(36+e.totalBytes)); err != nil { - return err - } - if _, err := e.Output.Seek(40, io.SeekStart); err != nil { - return err - } - if err := binary.Write(e.Output, binary.LittleEndian, e.totalBytes); err != nil { - return err - } - return nil -} - -func NewEncoder(w io.WriteSeeker, sampleRate int, bitDepth int) *Encoder { - return &Encoder{ - SampleRate: sampleRate, - Output: w, - BitDepth: bitDepth, - isHeaderWritten: false, - } -} diff --git a/code/utils/commonUtils.go b/code/utils/commonUtils.go deleted file mode 100644 index baa5470..0000000 --- a/code/utils/commonUtils.go +++ /dev/null @@ -1,12 +0,0 @@ -package utils - -import ( - "time" -) - -func GetCurrentDateAsString() string { - return time.Now().Format("2006-01-02") - - // 本地测试可以用这个。将1天缩短到10秒。 - //return strconv.Itoa((time.Now().Second() + 100000) / 10) -} diff --git a/code/utils/logUtils.go b/code/utils/logUtils.go deleted file mode 100644 index 34ea19f..0000000 --- a/code/utils/logUtils.go +++ /dev/null @@ -1,24 +0,0 @@ -package utils - -import ( - "fmt" - "gopkg.in/natefinch/lumberjack.v2" - "log" - "time" -) - -type MyLogWriter struct { -} - -func (writer MyLogWriter) Write(bytes []byte) (int, error) { - return fmt.Print(time.Now().UTC().Format("2006-01-02T15:04:05.999Z") + string(bytes)) -} - -func CloseLogger(logger *lumberjack.Logger) { - err := logger.Close() - if err != nil { - log.Println(err) - } else { - log.Println("logger closed") - } -} diff --git a/code/utils/strings.go b/code/utils/strings.go deleted file mode 100644 index bd623ee..0000000 --- a/code/utils/strings.go +++ /dev/null @@ -1,38 +0,0 @@ -package utils - -import "strings" - -func CutPrefix(s, prefix string) (string, bool) { - if strings.HasPrefix(s, prefix) { - return strings.TrimPrefix(s, prefix), true - } - return s, false -} - -func EitherCutPrefix(s string, prefix ...string) (string, bool) { - // 任一前缀匹配则返回剩余部分 - for _, p := range prefix { - if strings.HasPrefix(s, p) { - return strings.TrimPrefix(s, p), true - } - } - return s, false -} - -// trim space and equal -func TrimEqual(s, prefix string) (string, bool) { - if strings.TrimSpace(s) == prefix { - return "", true - } - return s, false -} - -func EitherTrimEqual(s string, prefix ...string) (string, bool) { - // 任一前缀匹配则返回剩余部分 - for _, p := range prefix { - if strings.TrimSpace(s) == p { - return "", true - } - } - return s, false -} diff --git a/code/utils/strings_test.go b/code/utils/strings_test.go deleted file mode 100644 index 757b16c..0000000 --- a/code/utils/strings_test.go +++ /dev/null @@ -1,109 +0,0 @@ -package utils - -import "testing" - -func TestEitherCutPrefix(t *testing.T) { - type args struct { - s string - prefix []string - } - tests := []struct { - name string - args args - want string - want1 bool - }{ - { - name: "Prefix match", - args: args{ - s: "/system bar", - prefix: []string{"/system "}, - }, - want: "bar", - want1: true, - }, - - { - name: "Prefix match", - args: args{ - s: "扮演 bar", - prefix: []string{"扮演 "}, - }, - want: "bar", - want1: true, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - got, got1 := EitherCutPrefix(tt.args.s, tt.args.prefix...) - if got != tt.want { - t.Errorf("EitherCutPrefix() got = %v, want %v", got, tt.want) - } - if got1 != tt.want1 { - t.Errorf("EitherCutPrefix() got1 = %v, want %v", got1, tt.want1) - } - }) - } -} - -func TestEitherTrimEqual(t *testing.T) { - type args struct { - s string - prefix []string - } - tests := []struct { - name string - args args - want string - want1 bool - }{ - { - name: "Prefix match", - args: args{ - s: "清除", - prefix: []string{"清除"}, - }, - want: "", - want1: true, - }, - { - name: "Prefix match", - args: args{ - s: " /clear ", - prefix: []string{"清除", "/clear"}, - }, - want: "", - want1: true, - }, - { - name: "Prefix match", - args: args{ - s: " 清除 ", - prefix: []string{"清除", "/clear"}, - }, - want: "", - want1: true, - }, - { - name: "Prefix match", - args: args{ - s: " clear ", - prefix: []string{"清除", "/clear"}, - }, - want: " clear ", - want1: false, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - got, got1 := EitherTrimEqual(tt.args.s, tt.args.prefix...) - if got != tt.want { - t.Errorf("EitherTrimEqual() got = %v, want %v", got, tt.want) - } - if got1 != tt.want1 { - t.Errorf("EitherTrimEqual() got1 = %v, want %v", got1, tt.want1) - } - }) - } -} diff --git a/commands/custom.go b/commands/custom.go new file mode 100644 index 0000000..b89784c --- /dev/null +++ b/commands/custom.go @@ -0,0 +1,76 @@ +package commands + +import ( + "net/http" + + "github.com/go-zoox/chatbot-feishu" + chatgpt "github.com/go-zoox/chatgpt-client" + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/feishu" + feishuEvent "github.com/go-zoox/feishu/event" + "github.com/go-zoox/fetch" + "github.com/go-zoox/logger" +) + +func CreateCustomCommand( + feishuClient feishu.Client, + chatgptClient chatgpt.Client, + cfg *config.Config, +) *chatbot.Command { + return &chatbot.Command{ + ArgsLength: 1, + Handler: func(args []string, request *feishuEvent.EventRequest, reply chatbot.MessageReply) error { + if len(args) != 1 { + return fmt.Errorf("invalid args: %v", args) + } + + question := args[0] + logger.Debugf("[custom command: %s, service: %s] question: %s", cfg.CustomCommand, cfg.CustomCommandService, question) + + response, err := fetch.Post(cfg.CustomCommandService, &fetch.Config{ + Headers: fetch.Headers{ + "Content-Type": "application/json", + "Accept": "application/json", + "User-Agent": fmt.Sprintf("go-zoox_fetch/%s chatgpt-for-chatbot-feishu/%s", fetch.Version, cfg.Version), + }, + Body: map[string]interface{}{ + "question": args[0], + }, + }) + if err != nil { + logger.Errorf("failed to request from custom command service(%s)(1): %v", cfg.CustomCommandService, err) + if err2 := replyText(reply, fmt.Sprintf("failed to interact with command service(err: %v)", err)); err2 != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + } + + if response.Status != http.StatusOK { + logger.Errorf("failed to request from custom command service(%s)(2): %d", cfg.CustomCommandService, response.Status) + if err := replyText(reply, fmt.Sprintf("failed to interact with command service (status: %d, response: %s)", response.Status, response.String())); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + } + + answer := response.Get("answer").String() + if answer == "" { + logger.Error("failed to request from custom command service(%s): empty answer (response: %s)", cfg.CustomCommandService, response.String()) + if err := replyText(reply, fmt.Sprintf("no answer found, unexpected response from custom command service(response: %s)", response.String())); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + } + + if err := replyText(reply, answer); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + }, + } +} diff --git a/commands/draw.go b/commands/draw.go new file mode 100644 index 0000000..b8e4471 --- /dev/null +++ b/commands/draw.go @@ -0,0 +1,69 @@ +package commands + +import ( + "github.com/go-zoox/chatbot-feishu" + chatgpt "github.com/go-zoox/chatgpt-client" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/core-utils/strings" + "github.com/go-zoox/feishu" + feishuEvent "github.com/go-zoox/feishu/event" + feishuImage "github.com/go-zoox/feishu/image" + "github.com/go-zoox/fetch" + "github.com/go-zoox/fs" + "github.com/go-zoox/logger" + openaiclient "github.com/go-zoox/openai-client" +) + +func CreateDrawCommand( + feishuClient feishu.Client, + chatgptClient chatgpt.Client, +) *chatbot.Command { + return &chatbot.Command{ + Handler: func(args []string, request *feishuEvent.EventRequest, reply chatbot.MessageReply) error { + prompt := strings.Join(args, " ") + if prompt == "" { + return replyText(reply, fmt.Sprintf("prompt is required (args: %s)", strings.Join(args, " "))) + } + + logger.Infof("[draw]: %v", prompt) + replyText(reply, "创作中,请稍等 ...") + + logger.Infof("[draw]: request image generation ...") + response, err := chatgptClient.ImageGeneration(&openaiclient.ImageGenerationRequest{ + Prompt: prompt, + }) + if err != nil { + return replyText(reply, fmt.Sprintf("failed to request image generation: %v", err)) + } + + for _, image := range response.Data { + tmpFilePath := fs.TmpFilePath() + + logger.Infof("[draw] download image from chatgpt: %v", image.URL) + _, err := fetch.Download(image.URL, tmpFilePath, &fetch.Config{}) + if err != nil { + return replyText(reply, fmt.Sprintf("failed to download image: %v", err)) + } + + tmpFile, err := fs.Open(tmpFilePath) + if err != nil { + return replyText(reply, fmt.Sprintf("failed to open image: %v", err)) + } + + logger.Infof("[draw] upload image to feishu ...") + response, err := feishuClient.Image().Upload(&feishuImage.UploadRequest{ + ImageType: "message", + Image: tmpFile, + }) + if err != nil { + return replyText(reply, fmt.Sprintf("failed to upload image: %v", err)) + } + + logger.Infof("[draw] reply image to feishu: %v", response.ImageKey) + replyImage(reply, response.ImageKey) + } + + return nil + }, + } +} diff --git a/commands/message.go b/commands/message.go new file mode 100644 index 0000000..073c6ce --- /dev/null +++ b/commands/message.go @@ -0,0 +1,168 @@ +package commands + +import ( + "time" + + "github.com/go-zoox/core-utils/regexp" + + "github.com/go-zoox/chatbot-feishu" + chatgpt "github.com/go-zoox/chatgpt-client" + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/core-utils/strings" + "github.com/go-zoox/feishu" + feishuEvent "github.com/go-zoox/feishu/event" + mc "github.com/go-zoox/feishu/message/content" + "github.com/go-zoox/logger" + "github.com/go-zoox/retry" +) + +func CreateMessageCommand( + feishuClient feishu.Client, + chatgptClient chatgpt.Client, + cfg *config.Config, +) *chatbot.Command { + return &chatbot.Command{ + Handler: func(args []string, request *feishuEvent.EventRequest, reply func(content string, msgType ...string) error) (err error) { + text := strings.Join(args, " ") + + // fmt.PrintJSON(request) + if cfg.BotInfo == nil { + logger.Infof("Trying to get bot info ...") + cfg.BotInfo, err = feishuClient.Bot().GetBotInfo() + if err != nil { + return fmt.Errorf("failed to get bot info: %v", err) + } + } + + user, err := getUser(feishuClient, request, cfg) + if err != nil { + return fmt.Errorf("failed to get user: %v", err) + } + + textMessage := strings.TrimSpace(text) + if textMessage == "" { + return nil + } + + var question string + // group chat + if request.IsGroupChat() { + // @ + if ok := regexp.Match("^@_user_1", textMessage); ok { + for _, metion := range request.Event.Message.Mentions { + if metion.Key == "@_user_1" && metion.ID.OpenID == cfg.BotInfo.OpenID { + question = textMessage[len("@_user_1"):] + question = strings.TrimSpace(question) + break + } + } + } else if ok := regexp.Match("^/chatgpt\\s+", textMessage); ok { + // command: /chatgpt + question = textMessage[len("/chatgpt "):] + } + } else if request.IsP2pChat() { + question = textMessage + } + + question = strings.TrimSpace(question) + if question == "" { + logger.Infof("ignore empty question message") + return nil + } + + // @TODO 离线服务 + if !cfg.IsInService { + return replyText(reply, cfg.OfflineMessage) + } + + go func() { + logger.Debugf("%s 问 ChatGPT:%s", user.User.Name, question) + + var err error + + conversation, err := chatgptClient.GetOrCreateConversation(request.ChatID(), &chatgpt.ConversationConfig{ + MaxMessages: 50, + Model: cfg.OpenAIModel, + Temperature: cfg.OpenAITemperature, + }) + if err != nil { + logger.Errorf("failed to get or create conversation by ChatID %s", request.ChatID()) + return + } + + if err := conversation.IsQuestionAsked(request.Event.Message.MessageID); err != nil { + logger.Warnf("duplicated event(id: %s): %v", request.Event.Message.MessageID, err) + return + } + + var answer []byte + err = retry.Retry(func() error { + + answer, err = conversation.Ask([]byte(question), &chatgpt.ConversationAskConfig{ + ID: request.Event.Message.MessageID, + User: user.User.Name, + }) + if err != nil { + logger.Errorf("failed to request answer: %v", err) + replyText(reply, fmt.Sprintf("服务异常:%s", err.Error())) + return fmt.Errorf("failed to request answer: %v", err) + } + + return nil + }, 5, 3*time.Second) + if err != nil { + logger.Errorf("failed to get answer: %v", err) + msgType, content, err := mc. + NewContent(). + Text(&mc.ContentTypeText{ + Text: "ChatGPT 繁忙,请稍后重试", + }). + Build() + if err != nil { + logger.Errorf("failed to build content: %v", err) + return + } + if err := reply(string(content), msgType); err != nil { + return + } + return + } + + logger.Debugf("ChatGPT 答 %s:%s", user.User.Name, answer) + + responseMessage := string(answer) + // if request.IsGroupChat() { + // responseMessage = fmt.Sprintf("%s\n-------------\n%s", question, answer) + // } + + msgType, content, err := mc. + NewContent(). + Post(&mc.ContentTypePost{ + ZhCN: &mc.ContentTypePostBody{ + Content: [][]mc.ContentTypePostBodyItem{ + { + { + Tag: "text", + UnEscape: true, + Text: responseMessage, + }, + }, + }, + }, + }). + Build() + if err != nil { + logger.Errorf("failed to build content: %v", err) + return + } + if err := reply(string(content), msgType); err != nil { + logger.Errorf("failed to reply: %v", err) + return + } + }() + + return nil + }, + } +} diff --git a/commands/model.go b/commands/model.go new file mode 100644 index 0000000..2d5912b --- /dev/null +++ b/commands/model.go @@ -0,0 +1,60 @@ +package commands + +import ( + "github.com/go-zoox/chatbot-feishu" + chatgpt "github.com/go-zoox/chatgpt-client" + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/core-utils/strings" + "github.com/go-zoox/feishu" + feishuEvent "github.com/go-zoox/feishu/event" +) + +func CreateModelCommand( + feishuClient feishu.Client, + chatgptClient chatgpt.Client, + cfg *config.Config, +) *chatbot.Command { + return &chatbot.Command{ + ArgsLength: 1, + Handler: func(args []string, request *feishuEvent.EventRequest, reply func(content string, msgType ...string) error) error { + if err := isAllowToDo(feishuClient, cfg, request, "model"); err != nil { + return err + } + + if len(args) == 0 || args[0] == "" { + currentModel, err := chatgptClient.GetConversationModel(request.ChatID(), &chatgpt.ConversationConfig{ + MaxMessages: 100, + Model: cfg.OpenAIModel, + }) + if err != nil { + return fmt.Errorf("failed to get model by conversation(%s)", request.ChatID()) + } + + if err := replyText(reply, fmt.Sprintf("当前模型:%s", currentModel)); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + } + + model := args[0] + if model == "" { + return fmt.Errorf("model name is required (args: %s)", strings.Join(args, " ")) + } + + if err := chatgptClient.ChangeConversationModel(request.ChatID(), model, &chatgpt.ConversationConfig{ + MaxMessages: 50, + Model: cfg.OpenAIModel, + }); err != nil { + return fmt.Errorf("failed to set model(%s) for conversation(%s)", model, request.ChatID()) + } + + if err := replyText(reply, fmt.Sprintf("succeed to set model: %s", model)); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + }, + } +} diff --git a/commands/offline.go b/commands/offline.go new file mode 100644 index 0000000..f282fb5 --- /dev/null +++ b/commands/offline.go @@ -0,0 +1,32 @@ +package commands + +import ( + "github.com/go-zoox/chatbot-feishu" + chatgpt "github.com/go-zoox/chatgpt-client" + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/feishu" + feishuEvent "github.com/go-zoox/feishu/event" +) + +func CreateOfflineCommand( + feishuClient feishu.Client, + chatgptClient chatgpt.Client, + cfg *config.Config, +) *chatbot.Command { + return &chatbot.Command{ + Handler: func(args []string, request *feishuEvent.EventRequest, reply func(content string, msgType ...string) error) error { + if err := isAllowToDo(feishuClient, cfg, request, "online"); err != nil { + return err + } + + cfg.IsInService = false + + if err := replyText(reply, "succeed to offline"); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + }, + } +} diff --git a/commands/online.go b/commands/online.go new file mode 100644 index 0000000..3b4a95a --- /dev/null +++ b/commands/online.go @@ -0,0 +1,32 @@ +package commands + +import ( + "github.com/go-zoox/chatbot-feishu" + chatgpt "github.com/go-zoox/chatgpt-client" + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/feishu" + feishuEvent "github.com/go-zoox/feishu/event" +) + +func CreateOnlineCommand( + feishuClient feishu.Client, + chatgptClient chatgpt.Client, + cfg *config.Config, +) *chatbot.Command { + return &chatbot.Command{ + Handler: func(args []string, request *feishuEvent.EventRequest, reply func(content string, msgType ...string) error) error { + if err := isAllowToDo(feishuClient, cfg, request, "online"); err != nil { + return err + } + + cfg.IsInService = true + + if err := replyText(reply, "succeed to online"); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + }, + } +} diff --git a/commands/ping.go b/commands/ping.go new file mode 100644 index 0000000..30bd3ec --- /dev/null +++ b/commands/ping.go @@ -0,0 +1,24 @@ +package commands + +import ( + "github.com/go-zoox/chatbot-feishu" + chatgpt "github.com/go-zoox/chatgpt-client" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/feishu" + feishuEvent "github.com/go-zoox/feishu/event" +) + +func CreatePingCommand( + feishuClient feishu.Client, + chatgptClient chatgpt.Client, +) *chatbot.Command { + return &chatbot.Command{ + Handler: func(args []string, request *feishuEvent.EventRequest, reply func(content string, msgType ...string) error) error { + if err := replyText(reply, "pong"); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + }, + } +} diff --git a/commands/reset.go b/commands/reset.go new file mode 100644 index 0000000..dca3e46 --- /dev/null +++ b/commands/reset.go @@ -0,0 +1,36 @@ +package commands + +import ( + "github.com/go-zoox/chatbot-feishu" + chatgpt "github.com/go-zoox/chatgpt-client" + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/feishu" + feishuEvent "github.com/go-zoox/feishu/event" +) + +func CreateResetCommand( + feishuClient feishu.Client, + chatgptClient chatgpt.Client, + cfg *config.Config, +) *chatbot.Command { + return &chatbot.Command{ + Handler: func(args []string, request *feishuEvent.EventRequest, reply chatbot.MessageReply) error { + if request.IsGroupChat() { + if err := isAllowToDo(feishuClient, cfg, request, "reset"); err != nil { + return err + } + } + + if err := chatgptClient.ResetConversation(request.ChatID()); err != nil { + return fmt.Errorf("failed to reset conversation(%s)", request.ChatID()) + } + + if err := replyText(reply, "succeed to reset"); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil + }, + } +} diff --git a/commands/utils.go b/commands/utils.go new file mode 100644 index 0000000..5517a73 --- /dev/null +++ b/commands/utils.go @@ -0,0 +1,99 @@ +package commands + +import ( + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/feishu" + "github.com/go-zoox/feishu/contact/user" + feishuEvent "github.com/go-zoox/feishu/event" + mc "github.com/go-zoox/feishu/message/content" +) + +func replyText(reply func(content string, msgType ...string) error, text string) error { + msgType, content, err := mc. + NewContent(). + Post(&mc.ContentTypePost{ + ZhCN: &mc.ContentTypePostBody{ + Content: [][]mc.ContentTypePostBodyItem{ + { + { + Tag: "text", + UnEscape: true, + Text: text, + }, + }, + }, + }, + }). + Build() + if err != nil { + return fmt.Errorf("failed to build content: %v", err) + } + if err := reply(string(content), msgType); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil +} + +func replyImage(reply func(content string, msgType ...string) error, imageKey string) error { + msgType, content, err := mc. + NewContent(). + Image(&mc.ContentTypeImage{ + ImageKey: imageKey, + }). + Build() + if err != nil { + return fmt.Errorf("failed to build content: %v", err) + } + if err := reply(string(content), msgType); err != nil { + return fmt.Errorf("failed to reply: %v", err) + } + + return nil +} + +func isAllowToDo(feishuClient feishu.Client, cfg *config.Config, request *feishuEvent.EventRequest, command string) (reason error) { + if cfg.AdminEmail != "" { + eventSender, err := feishuClient.Contact().User().Retrieve(&user.RetrieveRequest{ + UserIDType: "open_id", + UserID: request.Sender().SenderID.OpenID, + }) + if err != nil { + return fmt.Errorf("failed to retrieve user with openid(%s): %v", request.Sender().SenderID.OpenID, err) + } + + if eventSender.User.EnterpriseEmail != cfg.AdminEmail && eventSender.User.Email != cfg.AdminEmail { + return fmt.Errorf("user(%s) is not allow to do action: %s", eventSender.User.Name, command) + } + + return nil + } + + return fmt.Errorf("admin email is not set, not allow to do action: %s", command) +} + +func getUser(feishuClient feishu.Client, request *feishuEvent.EventRequest, cfg *config.Config) (*user.RetrieveResponse, error) { + sender := request.Sender() + + if cfg.AdminEmail != "" { + eventSender, err := feishuClient.Contact().User().Retrieve(&user.RetrieveRequest{ + UserIDType: "open_id", + UserID: sender.SenderID.OpenID, + }) + if err != nil { + return nil, fmt.Errorf("failed to retrieve user with openid(%s): %v", sender.SenderID.OpenID, err) + } + + return eventSender, nil + } + + return &user.RetrieveResponse{ + User: user.UserEntity{ + Name: sender.SenderID.UserID, + OpenID: sender.SenderID.OpenID, + UnionID: sender.SenderID.UnionID, + UserID: sender.SenderID.UserID, + }, + }, nil +} diff --git a/config/config.go b/config/config.go new file mode 100644 index 0000000..9b8c95c --- /dev/null +++ b/config/config.go @@ -0,0 +1,63 @@ +package config + +import ( + feishuBot "github.com/go-zoox/feishu/bot" +) + +type Config struct { + Port int64 + APIPath string + OpenAIAPIKey string + OpenAIAPITimeout int64 + AppID string + AppSecret string + EncryptKey string + VerificationToken string + // + ReportURL string + // + SiteURL string + // + OpenAIModel string + OpenAITemperature float64 + // + FeishuBaseURI string + // + ConversationContext string + ConversationLanguage string + // + LogsDir string + LogsLevel string + // + OfflineMessage string + // + AdminEmail string + // + BotName string + + // Proxy sets the request proxy. + // support http, https, socks5 + // example: + // http://127.0.0.1:17890 + // https://127.0.0.1:17890 + // socks5://127.0.0.1:17890 + Proxy string + + OpenAIAPIServer string + + OpenAIAPIType string + OpenAIAzureResource string + OpenAIAzureDeployment string + OpenAIAzureAPIVersion string + + // Custom Command with Service + CustomCommand string + CustomCommandService string + + // + Version string + + // @TODO State + IsInService bool + BotInfo *feishuBot.GetBotInfoResponse +} diff --git a/docker-compose.yaml b/docker-compose.yaml deleted file mode 100644 index 79ccbb5..0000000 --- a/docker-compose.yaml +++ /dev/null @@ -1,42 +0,0 @@ -version: '3.3' -services: - feishu-chatgpt: - container_name: Feishu-OpenAI-Stream-Chatbot - build: - context: . - dockerfile: Dockerfile - ports: - - "9000:9000/tcp" - volumes: - # - ./code/config.yaml:/app/config.yaml:ro - # 要注意,这里右边的容器内的路径,不是从根目录开始的,要参考 dockerfile 中的 WORKDIR - - ./logs:/app/logs - environment: - ################ 以下配置建议和 config.example.yaml 里面的配置综合起来看 ################ - # 日志配置, 默认不开启, 可以开启后查看日志 - - ENABLE_LOG=false - - APP_ID=cli_axxx - - APP_SECRET=xxx - - APP_ENCRYPT_KEY=xxx - - APP_VERIFICATION_TOKEN=xxx - # 请确保和飞书应用管理平台中的设置一致 - - BOT_NAME=xxx - # OpenAI API Key 支持负载均衡, 可以填写多个 Key 用逗号分隔 - - OPENAI_KEY=sk-xxx,sk-xxx,sk-xxx - # 服务器配置 - - HTTP_PORT=9000 - - HTTPS_PORT=9001 - - USE_HTTPS=false - - CERT_FILE=cert.pem - - KEY_FILE=key.pem - # OpenAI 地址, 一般不需要修改, 除非你有自己的反向代理 - - API_URL=https://api.openai.com - # 代理设置, 例如 - HTTP_PROXY=http://127.0.0.1:7890, 默认代表不使用代理 - - HTTP_PROXY - ## 访问控制 - # 是否启用访问控制。默认不启用。 - - ACCESS_CONTROL_ENABLE=false - # 每个用户每天最多问多少个问题。默认为0. 配置成为小于等于0表示不限制。 - - ACCESS_CONTROL_MAX_COUNT_PER_USER_PER_DAY=0 - # 访问OpenAi的 普通 Http请求的超时时间,单位秒,不配置的话默认为 550 秒 - - OPENAI_HTTP_CLIENT_TIMEOUT diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..41dfcb6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3.3' +services: + oapi-feishu: + image: woodchen/oapi-feishu + ports: + - 1008:8080 + environment: + OPENAI_API_KEY: ${OPENAI_API_KEY} + APP_ID: ${APP_ID} + APP_SECRET: ${APP_SECRET} + CHATGPT_LANGUAGE: ZH_CN + OFFLINE_MESSAGE: GPT已离线 + volumes: + - ./entrypoint.sh:/entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..4aea0dd --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,89 @@ +#!/bin/zmicro + +help() { + echo "Usage:" + echo " chatgpt-for-chatbot-feishu" +} + +core() { + if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + help + exit 0 + fi + + dotenv::try_load + + local PORT=${PORT:-8080} + local API_PATH=${API_PATH:-"/"} + + log::info "[$(timestamp)] run chatgpt for chatbot feishu with zmicro ..." + + if [ "$TUNNEL_ENABLE" = "true" ]; then + runtunnel + fi + + log::info "[$(timestamp)] starting chatgpt for chatbot feishu ..." + chatgpt-for-chatbot-feishu +} + +runtunnel() { + local tunnel_type="$TUNNEL_TYPE" + local tunnel_auth_token="$TUNNEL_AUTH_TOKEN" + local tunnel_subdomain="$TUNNEL_SUBDOMAIN" + local tunnel_log=$(os::tmp_file) + + echo + + log::info "[$(timestamp)] enable tunnel $tunnel_type (logfile: $tunnel_log)..." + + # TUNNEL NGROK + if [ "$tunnel_type" = "ngrok" ]; then + if [ -n "$tunnel_subdomain" ] && [ -z "$tunnel_auth_token" ]; then + log::error "[$(timestamp)] tunnel_auth_token is required when use tunnel_subdomain" + return 1 + fi + + if [ -n "$tunnel_auth_token" ]; then + zmicro ngrok config add-authtoken $tunnel_auth_token >>/dev/null + fi + + if [ -n "$tunnel_subdomain" ]; then + zmicro ngrok http --subdomain "$tunnel_subdomain" ${PORT} --log $tunnel_log >>$tunnel_log 2>&1 & + else + zmicro ngrok http ${PORT} --log $tunnel_log >>$tunnel_log 2>&1 & + fi + + log::info "[$(timestamp)] starting ngrok ..." + # sleep 3 + + local url="" + while [ -z "$url" ]; do + sleep 1 + + log::info "[$(timestamp)] checking whether ngrok connected ..." + url=$(cat $tunnel_log | grep "url=" | head -n 1 | awk -F '=' '{print $8}') + if [ -n "$url" ]; then + break + fi + + if [ "$DEBUG" = "true" ]; then + log::info "[$(timestamp)] show ngrok connection info start ..." + cat $tunnel_log + log::info "[$(timestamp)] show ngrok connection info end ..." + fi + done + + log::info "[$(timestamp)] ngrok url: $(color::green $url)" + + export SITE_URL=$url + else + log::error "[$(timestamp)] unsupport TUNNEL_TYPE: $TUNNEL_TYPE" + return 1 + fi +} + +run() { + core "$@" +} + +run "$@" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b3d0072 --- /dev/null +++ b/go.mod @@ -0,0 +1,119 @@ +module github.com/go-zoox/chatgpt-for-chatbot-feishu + +go 1.20 + +require ( + github.com/go-zoox/chalk v1.0.2 + github.com/go-zoox/chatbot-feishu v1.3.0 + github.com/go-zoox/chatgpt-client v1.6.3 + github.com/go-zoox/cli v1.3.6 + github.com/go-zoox/core-utils v1.3.1 + github.com/go-zoox/feishu v1.4.2 + github.com/go-zoox/fetch v1.8.1 + github.com/go-zoox/fs v1.3.14 + github.com/go-zoox/logger v1.4.6 + github.com/go-zoox/openai-client v1.5.2 + github.com/go-zoox/retry v1.0.3 + github.com/go-zoox/zoox v1.12.37 +) + +require ( + github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect + github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect + github.com/creack/pty v1.1.21 // indirect + github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/distribution/reference v0.5.0 // indirect + github.com/docker/cli v24.0.7+incompatible // indirect + github.com/docker/distribution v2.8.3+incompatible // indirect + github.com/docker/docker v24.0.7+incompatible // indirect + github.com/docker/go-connections v0.4.0 // indirect + github.com/docker/go-units v0.5.0 // indirect + github.com/fatih/color v1.16.0 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/go-errors/errors v1.5.1 // indirect + github.com/go-redis/redis/v8 v8.11.5 // indirect + github.com/go-zoox/cache v1.0.6 // indirect + github.com/go-zoox/command v1.3.0 // indirect + github.com/go-zoox/commands-as-a-service v1.6.10 // indirect + github.com/go-zoox/compress v1.0.1 // indirect + github.com/go-zoox/concurrency v1.2.0 // indirect + github.com/go-zoox/config v1.2.10 // indirect + github.com/go-zoox/cookie v1.2.0 // indirect + github.com/go-zoox/counter v1.2.1 // indirect + github.com/go-zoox/cron v1.2.0 // indirect + github.com/go-zoox/crypto v1.1.8 // indirect + github.com/go-zoox/datetime v1.2.2 // indirect + github.com/go-zoox/debug v1.0.2 // indirect + github.com/go-zoox/dotenv v1.2.3 // indirect + github.com/go-zoox/encoding v1.2.1 // indirect + github.com/go-zoox/errors v1.0.2 // indirect + github.com/go-zoox/gzip v1.0.0 // indirect + github.com/go-zoox/headers v1.0.8 // indirect + github.com/go-zoox/i18n v1.0.3 // indirect + github.com/go-zoox/ini v1.0.4 // indirect + github.com/go-zoox/jobqueue v1.0.0 // indirect + github.com/go-zoox/jsonrpc v1.2.2 // indirect + github.com/go-zoox/jwt v1.3.0 // indirect + github.com/go-zoox/kv v1.5.9 // indirect + github.com/go-zoox/lru v1.0.1 // indirect + github.com/go-zoox/mq v1.0.1 // indirect + github.com/go-zoox/proxy v1.5.6 // indirect + github.com/go-zoox/pubsub v1.2.2 // indirect + github.com/go-zoox/random v1.0.4 // indirect + github.com/go-zoox/ratelimit v1.2.1 // indirect + github.com/go-zoox/safe v1.0.1 // indirect + github.com/go-zoox/session v1.2.0 // indirect + github.com/go-zoox/tag v1.2.3 // indirect + github.com/go-zoox/uuid v0.0.1 // indirect + github.com/goccy/go-yaml v1.11.2 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/google/uuid v1.5.0 // indirect + github.com/gorilla/websocket v1.5.1 // indirect + github.com/joho/godotenv v1.5.1 // indirect + github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/moby/term v0.5.0 // indirect + github.com/morikuni/aec v1.0.0 // indirect + github.com/opencontainers/go-digest v1.0.0 // indirect + github.com/opencontainers/image-spec v1.0.2 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/redis/go-redis/v9 v9.3.0 // indirect + github.com/robfig/cron/v3 v3.0.1 // indirect + github.com/russross/blackfriday/v2 v2.1.0 // indirect + github.com/sevlyar/go-daemon v0.1.6 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect + github.com/spf13/cast v1.6.0 // indirect + github.com/tidwall/gjson v1.17.0 // indirect + github.com/tidwall/match v1.1.1 // indirect + github.com/tidwall/pretty v1.2.1 // indirect + github.com/urfave/cli/v2 v2.25.7 // indirect + github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + golang.org/x/crypto v0.16.0 // indirect + golang.org/x/mod v0.14.0 // indirect + golang.org/x/net v0.19.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect + golang.org/x/tools v0.16.1 // indirect + golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) + +// replace github.com/go-zoox/chatbot-feishu => ../chatbot-feishu + +// replace github.com/go-zoox/feishu => ../feishu + +// replace github.com/go-zoox/logger => ../logger + +// replace github.com/go-zoox/chatbot-feishu => ../../go-zoox/chatbot-feishu + +// replace github.com/go-zoox/openai-client => ../../go-zoox/openai-client + +// replace github.com/go-zoox/chatgpt-client => ../../go-zoox/chatgpt-client + +// replace github.com/go-zoox/feishu => ../../go-zoox/feishu + +// replace github.com/go-zoox/zoox => ../zoox diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..3c85bca --- /dev/null +++ b/go.sum @@ -0,0 +1,444 @@ +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= +github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= +github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= +github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/creack/pty v1.1.21 h1:1/QdRyBaHHJP61QkWMXlOIBfsgdDeeKfK8SYVUWJKf0= +github.com/creack/pty v1.1.21/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= +github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= +github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= +github.com/docker/cli v24.0.7+incompatible h1:wa/nIwYFW7BVTGa7SWPVyyXU9lgORqUb1xfI36MSkFg= +github.com/docker/cli v24.0.7+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= +github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk= +github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v24.0.7+incompatible h1:Wo6l37AuwP3JaMnZa226lzVXGA3F9Ig1seQen0cKYlM= +github.com/docker/docker v24.0.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= +github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk= +github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= +github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= +github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= +github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= +github.com/go-playground/validator/v10 v10.10.0/go.mod h1:74x4gJWsvQexRdW8Pn3dXSGrTK4nAUsbPlLADvpJkos= +github.com/go-playground/validator/v10 v10.11.0 h1:0W+xRM511GY47Yy3bZUbJVitCNg2BOGlCyvTqsp/xIw= +github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= +github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0= +github.com/go-zoox/cache v1.0.6 h1:Ozix1WuLvyMb4laZozL2LVEjYA5SwjmoFfqUXO3Luhg= +github.com/go-zoox/cache v1.0.6/go.mod h1:rDQPnldnf1V8tKCn5e1MrkDXI2BFTws7PniTQQa2lpc= +github.com/go-zoox/chalk v1.0.1/go.mod h1:z5+qvE9nEJI5uT4px2tyoFa/xxkqf3CUo22KmXLKbNI= +github.com/go-zoox/chalk v1.0.2 h1:DCWft37fogmvqF37JdbGSLg28L/tQeA8u0lMvb62KOg= +github.com/go-zoox/chalk v1.0.2/go.mod h1:z5+qvE9nEJI5uT4px2tyoFa/xxkqf3CUo22KmXLKbNI= +github.com/go-zoox/chatbot-feishu v1.3.0 h1:FW8F0ApQRQELHpwaG5dzrSLwXBTBegRs1eGILXC/UnA= +github.com/go-zoox/chatbot-feishu v1.3.0/go.mod h1:EmJRYc27aLYWoPAupEsUBmzhn8r/5YYbzgAGXZjBlHo= +github.com/go-zoox/chatgpt-client v1.6.3 h1:+xNDXQWT5wJ18fgzenWxu63XA8LcJTfANkq4X8xhom8= +github.com/go-zoox/chatgpt-client v1.6.3/go.mod h1:kVESS3pFzNvMOhuxMbT2Je+OgQfs4svP80LaO/2fV/o= +github.com/go-zoox/cli v1.3.6 h1:+A4l9aBBvqO/xXjwZ1PCcX0ue/HZ/Ft0Wp/dDq27iVE= +github.com/go-zoox/cli v1.3.6/go.mod h1:25ox3mVRJdRSyLJLvK8OHYEuXtMtfkTseWkJjlK9kM4= +github.com/go-zoox/command v1.2.9 h1:7vY0TJ3iXB7qmmhdmx+CcRWDrrPq0ITEm8NXLMLT/g4= +github.com/go-zoox/command v1.2.9/go.mod h1:U6Jt52RImxJVpSHAwYl4V5eESk5QRpRXoboXqu1oz5k= +github.com/go-zoox/command v1.3.0 h1:9VpRqEYXWJTbVjrfkTmKYmWSDqpYv7TKsQ9nker8yAE= +github.com/go-zoox/command v1.3.0/go.mod h1:U6Jt52RImxJVpSHAwYl4V5eESk5QRpRXoboXqu1oz5k= +github.com/go-zoox/commands-as-a-service v1.6.5 h1:JQJpgP9VorTySGDP1gd1jC/Ildy4gTok6zWkD3S9NEs= +github.com/go-zoox/commands-as-a-service v1.6.5/go.mod h1:oWIRqTWIzmJdgVB1UoAgiCfFoswhJ8PDfATmb+JLsHE= +github.com/go-zoox/commands-as-a-service v1.6.10 h1:bpTgqTcy0SzJX7swlct/Iw67ueiuzVXuqgW7zuDtEHE= +github.com/go-zoox/commands-as-a-service v1.6.10/go.mod h1:he7ThLjNUzWzw5sZNANoxsmUvEYSprvlQNbHw+iJagw= +github.com/go-zoox/compress v1.0.1 h1:EyNxo5NscMLua5fvUdiGSF+BwhuTfMeyppu7OwKAW7Q= +github.com/go-zoox/compress v1.0.1/go.mod h1:iV6CcNulf3OuEfA1h1VOsaBqYH81cVSg5wNi5HDx2h4= +github.com/go-zoox/concurrency v1.2.0 h1:iucwSWQ0Y9fFIG+eZvyHjMrIPSnaKJTGfOcGbIx91yg= +github.com/go-zoox/concurrency v1.2.0/go.mod h1:rghauUPHEDp8HJzaVlU851HWqiAqD8lUVp45K/dtNvw= +github.com/go-zoox/config v1.2.10 h1:mebuz6O0N81OXOCwtV+LKOiFuAfZ5wyaGsuzkGSSpf4= +github.com/go-zoox/config v1.2.10/go.mod h1:KnSEhz7AVMqQfznJzgpzFhQfgy8UZYeone/osbvnVUE= +github.com/go-zoox/cookie v1.2.0 h1:MO33lPQ/QGJIAEzgrsAfEpJc25lcJ/XR0w+smM19sNQ= +github.com/go-zoox/cookie v1.2.0/go.mod h1:+xEawxty0L+z+4EIvTF2AaHUkUM7oIecGZ9XrEaYqsI= +github.com/go-zoox/core-utils v1.0.4/go.mod h1:EknM3KLL6/kagL95wZbWE7mRRcYCG/fHqiJ/EH0ihAs= +github.com/go-zoox/core-utils v1.0.12/go.mod h1:EknM3KLL6/kagL95wZbWE7mRRcYCG/fHqiJ/EH0ihAs= +github.com/go-zoox/core-utils v1.0.13/go.mod h1:EknM3KLL6/kagL95wZbWE7mRRcYCG/fHqiJ/EH0ihAs= +github.com/go-zoox/core-utils v1.3.1 h1:uH8cWA3hYOox68+b87/j4sxUGkHjqf/EFsN/JIasCFE= +github.com/go-zoox/core-utils v1.3.1/go.mod h1:raOOwr2l2sJQyjR0Dg33sg0ry4U1/L2eNTuLFRpUXWs= +github.com/go-zoox/counter v1.0.1/go.mod h1:PICilZTrnO4dFstDPlXpjc6sdWYBG7hm/XDmjAcHaX0= +github.com/go-zoox/counter v1.2.1 h1:MPShpjJWQ/qt3pYQxuyBL/Ci6X4mtihTC3cwDr1VOI8= +github.com/go-zoox/counter v1.2.1/go.mod h1:gOA/Bk2iWt9K4vm2Std2ciEgHwQqWSzvcyUI+jFVduY= +github.com/go-zoox/cron v1.1.2 h1:4iEIXIYu8MFRWBZccPaQ7wkpmvBs/N6a0FzWYiup9AU= +github.com/go-zoox/cron v1.1.2/go.mod h1:7aOIpwGDyyg+NqX+041NO+9f8FhAngWiLqBPBN6kZ9k= +github.com/go-zoox/cron v1.2.0 h1:WAcfeg0R6sASs9HjNwDz+uEIUrl62jj0zBSOF3oox9c= +github.com/go-zoox/cron v1.2.0/go.mod h1:vN6JqnvSgF9Rjjg/+cTxm8HywA3U+0cwP9RW3kdkg4E= +github.com/go-zoox/crypto v1.0.3/go.mod h1:HaWRg4tHZamqNyOnNoaK+Rw5eto+su66i8bMMP8UCBU= +github.com/go-zoox/crypto v1.1.8 h1:oI2KPLy+SsGeb+h5A99n9MTQVp4jBhwJWkqjStUzz9I= +github.com/go-zoox/crypto v1.1.8/go.mod h1:JqgNr9HcFFGQkMCGLJ9djtfg/RWVLxtunG01HD3lUXM= +github.com/go-zoox/datetime v1.0.4/go.mod h1:os6lYW/GXNpCIseFrBr8DNcOiPuwl5Ttc/kxo4JnMjw= +github.com/go-zoox/datetime v1.2.2 h1:JrI4ekdsvpsenGzrNQAOmobBTYyotaXD3YDXngvCbM4= +github.com/go-zoox/datetime v1.2.2/go.mod h1:qvaCrzjhq/g/gstx4sx06Nl4ll2pLSrkRa9ueLjrZ9A= +github.com/go-zoox/debug v1.0.1/go.mod h1:7HvnBeV1dVuuGVnXSLdJ5OE6X/wIXAjIEyiaA7NqQPA= +github.com/go-zoox/debug v1.0.2 h1:nnaSGUC1F3218P3BN6ZhRR5GNKtx5DKZ1RtsvAhIjyA= +github.com/go-zoox/debug v1.0.2/go.mod h1:7HvnBeV1dVuuGVnXSLdJ5OE6X/wIXAjIEyiaA7NqQPA= +github.com/go-zoox/dotenv v1.0.7/go.mod h1:N2bXxghq3Zk+lpiOxv+m+0yjnGubVqJGJDR/9jWm3N0= +github.com/go-zoox/dotenv v1.1.0/go.mod h1:elKALomz436YKX4Syo+f02ozIQYq2yFaprj6jL6GnCQ= +github.com/go-zoox/dotenv v1.2.3 h1:9wx4sL2u/FrRLkzoOb7ozYii6NoGsl05KoGdZm1ebIE= +github.com/go-zoox/dotenv v1.2.3/go.mod h1:hhl5WZUxI+DNJN6Zos1y7Nq0jDCXciphswPSYtInqg0= +github.com/go-zoox/encoding v1.0.5/go.mod h1:WFF+m/IWYHtClMrcKnrdZHHf3cdIF8de2uTOILPM7lw= +github.com/go-zoox/encoding v1.0.7/go.mod h1:h6ZgI27IaUSBq1ntaZjnSruPdRFuBLNUmfp57TaPxs4= +github.com/go-zoox/encoding v1.2.1 h1:38rQRsfL1f1YHZaqsPaGcNMkPnzatnPlYiHioUh9F4A= +github.com/go-zoox/encoding v1.2.1/go.mod h1:NdcM7Ln73oVW3vJgx3MH4fJknCcdQfq+NgJ0tuCo7tU= +github.com/go-zoox/errors v1.0.2 h1:1NLMoEVlDU1+qrvvPj+rrJXOvQPdeZ3DekVBFrI5PFY= +github.com/go-zoox/errors v1.0.2/go.mod h1:HJ5NKQb9cu3IbI0Jayw7xZiblLBEIglpaIOMxvQnWnk= +github.com/go-zoox/feishu v1.4.0 h1:zdk0Qf4RuvVBUH/S/eOqgV1ZHS4IuphZkYT4TauTtBM= +github.com/go-zoox/feishu v1.4.0/go.mod h1:Wz3RsfxM9mZEMvsFR1tHbkqrjk9XvXioQo8Gnr5kvbk= +github.com/go-zoox/feishu v1.4.2 h1:XU+M4r8ga5JPO3dDdRbkc5Fd+0ShXy3c6xJd0TE6cFk= +github.com/go-zoox/feishu v1.4.2/go.mod h1:Wz3RsfxM9mZEMvsFR1tHbkqrjk9XvXioQo8Gnr5kvbk= +github.com/go-zoox/fetch v1.3.5/go.mod h1:AkS6v/DlotjmUs+7qJsoFGFkpROr9LVtiKYb000v3Kw= +github.com/go-zoox/fetch v1.4.4/go.mod h1:WExVnds3HZ1A6jJu9KuqtICfkJpvUdR4uONUnw9TG+0= +github.com/go-zoox/fetch v1.7.16 h1:3bRoF2bG+M5PnWoFXka64PfHRx35Y60Mu70z2F5USDM= +github.com/go-zoox/fetch v1.7.16/go.mod h1:zaDVj8s8gPFzEeFFsD2oWc5D1z8uKKQwwnilmPdSQOk= +github.com/go-zoox/fetch v1.8.1 h1:Zh2yW/loXSoSebKZ1UkKKMpH/E51HtFb9L0zpr+2R2I= +github.com/go-zoox/fetch v1.8.1/go.mod h1:RaYJe2EZ/4M9zUyJl9x8HhMkQ/4HfxvdqYVkRp8IY1k= +github.com/go-zoox/fs v1.2.4/go.mod h1:aywpClMqf6YO8+QnuwC3p3EvFWe88h0tWH65rpxtY00= +github.com/go-zoox/fs v1.2.5/go.mod h1:aywpClMqf6YO8+QnuwC3p3EvFWe88h0tWH65rpxtY00= +github.com/go-zoox/fs v1.3.14 h1:u5vws9DdxCKh6U6SztIGIzVcZyydXbpSrV0S+cXzP7c= +github.com/go-zoox/fs v1.3.14/go.mod h1:GGcmvYa1Kyvspc8YzPt0peLGie+KlCoo2gkg4XbGRiY= +github.com/go-zoox/gzip v1.0.0 h1:11ZTgxAPgexmZ/NJaEEuN2FDCJuvg9sips+XDR+48Yw= +github.com/go-zoox/gzip v1.0.0/go.mod h1:7g9vTpKek1dft1Yi1Ryi4A6dq9snMgq94Qq8wSte8L0= +github.com/go-zoox/headers v1.0.8 h1:HZJisMHhKwdySVNbV4Awc5kaMxFfAwBIHpcWOGch+iw= +github.com/go-zoox/headers v1.0.8/go.mod h1:WEgEbewswEw4n4qS1iG68Kn/vOQVCAKGwwuZankc6so= +github.com/go-zoox/i18n v1.0.3 h1:PqeOKyhI9MxbA9TyWDgm7zcCL5WRSlxhANHWou04VHk= +github.com/go-zoox/i18n v1.0.3/go.mod h1:WURpyaWOrVVN4f3mEQtl5A0kie5bK4ExQJ0PnHSOfTI= +github.com/go-zoox/ini v1.0.4 h1:N4mUbAO0juYIRrv3ysjKtpEn/+yQv57eQietsgpkAYQ= +github.com/go-zoox/ini v1.0.4/go.mod h1:SisQneNLb1EBeZ5bA5GnrJd8FNg372hQrPh+gb3IzV4= +github.com/go-zoox/jobqueue v1.0.0 h1:pVv/eGI0CLLHUP3rDVyn0ALzsobtaxTOnkWw/JhW9Vg= +github.com/go-zoox/jobqueue v1.0.0/go.mod h1:jUCZxrQcM28orhac67eNLU7SBiVNXehxSelj7j4MM88= +github.com/go-zoox/jsonrpc v1.2.2 h1:asaoJgJkfyH5eblLQ1WzrZDe8ERL6v9GT4pKR/LJ3IE= +github.com/go-zoox/jsonrpc v1.2.2/go.mod h1:HdxJW/T0hkVHlfm+ULRnNEqvTtvZ7o4qxdQGQW76khM= +github.com/go-zoox/jwt v1.0.0/go.mod h1:a6ANQHmSs+b9GJv5aad2cQLl8opFmP3hMOxZtgXRmis= +github.com/go-zoox/jwt v1.3.0 h1:beyPOdiiNrNK8dqFijt5kdtaeh1dZKtM7/kaCMGbV0U= +github.com/go-zoox/jwt v1.3.0/go.mod h1:Cfc+t0XhNCgDjXLR5sK6ao7qz1GSIq896gZ1usNb7t8= +github.com/go-zoox/kv v1.4.1/go.mod h1:dc3whoIvGrYmQA2wi6g6ZE0oOtRg+loxaJEj6bLKlJA= +github.com/go-zoox/kv v1.4.3/go.mod h1:hRCBcPBHilKmeSEsn4o67LBaXurX0+m3Tq9Ec4aIRWk= +github.com/go-zoox/kv v1.5.9 h1:xEjIRJVcwIg2PhO0ZL+KWR5mCI/f5VshmcOjZPd4FRA= +github.com/go-zoox/kv v1.5.9/go.mod h1:sD2FmWrme1gzWaLciBAPyK0BtW3BluM02UGskOqf2MA= +github.com/go-zoox/logger v1.2.0/go.mod h1:mBImRV6zpbGtiIjDz/C9vWi80wWc2OTOl9N9P0SAJgk= +github.com/go-zoox/logger v1.4.6 h1:zHUaB6KQ9rD/N3hM0JJ3/JCNdgtedf4mVBBNNSyWCOg= +github.com/go-zoox/logger v1.4.6/go.mod h1:o7ddvv/gMoMa0TomPhHoIz11ZWRbQ92pF6rwYbOY3iQ= +github.com/go-zoox/lru v1.0.1 h1:AvRHxKEeEFSH9UXyfDQ5lj8nr66p6tJS3kVf/eTVyMg= +github.com/go-zoox/lru v1.0.1/go.mod h1:xxtYsRbJ2iJKEL4OIEZ6lk0xjuGJHHZmZZhGtH5qwv0= +github.com/go-zoox/mq v1.0.1 h1:JZSgWfp4JJDVKN8FgUkWWNDb3HOhV15dIdi+ecZENwQ= +github.com/go-zoox/mq v1.0.1/go.mod h1:0Zhgww1wcFNC37NJZjtumai03MvBAZuQ4VhezcAiFJE= +github.com/go-zoox/openai-client v1.5.2 h1:oOxXRb+0H0e59SfXz23zVZtP/G/FBuNZeOws3qTjE10= +github.com/go-zoox/openai-client v1.5.2/go.mod h1:h6vfyPajS1ScdALzDb+CwcSiMH3WKqScma0qH+SlRF8= +github.com/go-zoox/proxy v1.2.3/go.mod h1:T+gbngAtIgvambbYibAbzrjwdu8j5pduJdA2j6RYi94= +github.com/go-zoox/proxy v1.5.6 h1:Ha5wsSjIi57TcYJnb4iBrW1xmJlNW2E7dWjUIwIe6iE= +github.com/go-zoox/proxy v1.5.6/go.mod h1:KLWeJqfQk1upCvEdXt3tEuM8xSu0ApbA9FNLOmyHysY= +github.com/go-zoox/pubsub v1.2.2 h1:dpcFlZRSGhX0YqT/WoOJgP5bP2VDqswPqXiiFZCki1w= +github.com/go-zoox/pubsub v1.2.2/go.mod h1:LWX0NAg80hkeGdZf7PJOEGnyN6CXooCxpIlh2MxESDo= +github.com/go-zoox/random v1.0.0/go.mod h1:W+PTQiInxaCngiXpSvycucAKvu1tE/tKlZ9kaMp2/Ys= +github.com/go-zoox/random v1.0.4 h1:icckpkCowQ0eGiiMkHFOJz9Qc9noOcinP+ggqWUIBH4= +github.com/go-zoox/random v1.0.4/go.mod h1:W+PTQiInxaCngiXpSvycucAKvu1tE/tKlZ9kaMp2/Ys= +github.com/go-zoox/ratelimit v1.0.1/go.mod h1:5MtLMrfQRbZHI+tKC4eyHZorrZX005Sy/Dldnk8qYOU= +github.com/go-zoox/ratelimit v1.2.1 h1:iFuD6Md2jDERFXF2oiAzyt+px+SIOu+ICHIoB7v2KgY= +github.com/go-zoox/ratelimit v1.2.1/go.mod h1:CyFcL4Cpm7O8jvry9O+AlxyrgJGgvl4ebo4j0D3CGHA= +github.com/go-zoox/retry v1.0.3 h1:qpGq2Dqe9/mjhryDDwMEFWN+YDLHvpXL5hfwKJ1yTC4= +github.com/go-zoox/retry v1.0.3/go.mod h1:4NJ0wCtxGgHwzHYIN4bG1VnQ19w3rY2kzyOpNfm7x5o= +github.com/go-zoox/safe v1.0.1 h1:JwWK7xCyv7eyzBbwzQvhK/Ajm8gG2Q9Cvd/KXpdF2zI= +github.com/go-zoox/safe v1.0.1/go.mod h1:lT0iEBmpoia7xfh2bWzdurzdv++4QRUAfeEzIhCnpoA= +github.com/go-zoox/session v1.2.0 h1:hzjcZYV3+cVmocnC6MazhtELONMtRlIuEezCYvbxY9Q= +github.com/go-zoox/session v1.2.0/go.mod h1:SLHzCK3DDknqot28deZQFBPz5hm9QHcUeRra8y9GT8E= +github.com/go-zoox/tag v1.0.2/go.mod h1:TNFY+IN6FgsD0KGV6mrnuVXONUq7zpH01k53BcNsT8k= +github.com/go-zoox/tag v1.0.6/go.mod h1:jrbJgC1dZAN5+vZlmrUKu1/UpbOo0xVyCC1MfLpGGqk= +github.com/go-zoox/tag v1.0.9/go.mod h1:jrbJgC1dZAN5+vZlmrUKu1/UpbOo0xVyCC1MfLpGGqk= +github.com/go-zoox/tag v1.1.0/go.mod h1:yMB7bMseqbOshUW9O9Dqfq0C7Mmy9OkccV/meEJHICs= +github.com/go-zoox/tag v1.2.3 h1:HDQpRu8rA1xSJt6c+v0O7TfzTjPq5aDtyzW/15aTh94= +github.com/go-zoox/tag v1.2.3/go.mod h1:z9z4iZb/XPE4HwTXJgPIdwgH90c2NysGxIMq9tW+GuU= +github.com/go-zoox/testify v1.0.2 h1:G5sQ3xm0uwCuytnMhgnqZ5BItCt2DN3n2wLBqlIJEWA= +github.com/go-zoox/uuid v0.0.1 h1:txqmDavRTq68gzzqWfJQLorFyUp9a7M2lmq2KcwPGPA= +github.com/go-zoox/uuid v0.0.1/go.mod h1:0/F4LdfLqFdyqOf7aXoiYXRkXHU324JQ5DZEytXYBPM= +github.com/go-zoox/zoox v1.2.19/go.mod h1:xk3S3L58ugJIDyuZMCYrj3qIGLSxddbkARwTRkpxPVE= +github.com/go-zoox/zoox v1.12.29 h1:eg4ug+sXvWt2w9KEaSyrV4Fzv0QE4dcCweKApcu2ZJY= +github.com/go-zoox/zoox v1.12.29/go.mod h1:Z8VmwMC7mahiXErAvy8GXv+tM8LHT0YPNOGLSycGTYw= +github.com/go-zoox/zoox v1.12.37 h1:8gQfx2ZR6UN6A9oSIQll/rHf1KBGV5YDD5iILhpZl0Q= +github.com/go-zoox/zoox v1.12.37/go.mod h1:kTJ7oHR9fui8FO06BWA1DC3fouAYCzpdQgwmopAPh10= +github.com/goccy/go-yaml v1.9.5/go.mod h1:U/jl18uSupI5rdI2jmuCswEA2htH9eXfferR3KfscvA= +github.com/goccy/go-yaml v1.11.2 h1:joq77SxuyIs9zzxEjgyLBugMQ9NEgTWxXfz2wVqwAaQ= +github.com/goccy/go-yaml v1.11.2/go.mod h1:wKnAMd44+9JAAnGQpWVEgBzGt3YuTaQ4uXoHvE4m7WU= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= +github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= +github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/joho/godotenv v1.4.0/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= +github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 h1:iQTw/8FWTuc7uiaSepXwyf3o52HaUYcV+Tu66S3F5GA= +github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= +github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= +github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-sqlite3 v1.14.12/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= +github.com/mattn/go-sqlite3 v1.14.13/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= +github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= +github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= +github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= +github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.0.0/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE= +github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM= +github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= +github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= +github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/redis/go-redis/v9 v9.3.0 h1:RiVDjmig62jIWp7Kk4XVLs0hzV6pI3PyTnnL0cnn0u0= +github.com/redis/go-redis/v9 v9.3.0/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M= +github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= +github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/sevlyar/go-daemon v0.1.6 h1:EUh1MDjEM4BI109Jign0EaknA2izkOyi0LV3ro3QQGs= +github.com/sevlyar/go-daemon v0.1.6/go.mod h1:6dJpPatBT9eUwM5VCw9Bt6CdX9Tk6UWvhW3MebLDRKE= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= +github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/tidwall/gjson v1.14.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/gjson v1.14.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/gjson v1.17.0 h1:/Jocvlh98kcTfpN2+JzGQWQcqrPQwDrVEMApx/M5ZwM= +github.com/tidwall/gjson v1.17.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= +github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= +github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31 h1:OXcKh35JaYsGMRzpvFkLv/MEyPuL49CThT1pZ8aSml4= +github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= +github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220313003712-b769efc7c000/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.15.0 h1:frVn1TEaCEaZcn3Tmd7Y2b5KKPaZ+I32Q2OA3kYp5TA= +golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= +golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220802222814-0bcc04d9c69b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg= +golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220330033206-e17cdc41300f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.14.0 h1:LGK9IlZ8T9jvdy6cTdfKUCltatMFOehAQo9SRC46UQ8= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.15.0 h1:zdAyfUGbYmuVokhzVmghFl2ZJh5QhcfebBgmVPFYA+8= +golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk= +golang.org/x/tools v0.16.1 h1:TLyB3WofjdOEepBHAU20JdNC1Zbg87elYofWYAY5oZA= +golang.org/x/tools v0.16.1/go.mod h1:kYVVN6I1mBNoB1OX+noeBjbRk4IUEPa7JJ+TJMEooJ0= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= diff --git a/logs.go b/logs.go new file mode 100644 index 0000000..3bd835c --- /dev/null +++ b/logs.go @@ -0,0 +1,64 @@ +package main + +import ( + "os" + + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/fs" + "github.com/go-zoox/logger" + "github.com/go-zoox/logger/components/transport" + "github.com/go-zoox/logger/transport/file" +) + +type Logs struct { + Dir string + Level string + + // + accessLogFile *os.File + errorLogFile *os.File + debugLogFile *os.File +} + +func (l *Logs) Setup() (err error) { + if ok := fs.IsExist(l.Dir); !ok { + if err := fs.Mkdirp(l.Dir); err != nil { + return fmt.Errorf("failed to create log directory for : %v", err) + } + } + + accessLog := fs.JoinPath(l.Dir, "access.log") + if l.accessLogFile, err = fs.Open(accessLog); err != nil { + return fmt.Errorf("failed to open access log(%s): %v", accessLog, err) + } + errorLog := fs.JoinPath(l.Dir, "error.log") + if l.errorLogFile, err = fs.Open(errorLog); err != nil { + return fmt.Errorf("failed to open error log(%s): %v", accessLog, err) + } + debugLog := fs.JoinPath(l.Dir, "debug.log") + if l.debugLogFile, err = fs.Open(debugLog); err != nil { + return fmt.Errorf("failed to open debug log(%s): %v", accessLog, err) + } + + logger.AppendTransports(map[string]transport.Transport{ + "access": file.New(&file.Config{ + Level: "info", + File: l.accessLogFile, + Exact: true, + }), + "error": file.New(&file.Config{ + Level: "error", + File: l.errorLogFile, + Exact: true, + }), + "debug": file.New(&file.Config{ + Level: "debug", + File: l.debugLogFile, + Exact: true, + }), + }) + + logger.SetLevel(l.Level) + + return nil +} diff --git a/main.go b/main.go new file mode 100644 index 0000000..cbbb927 --- /dev/null +++ b/main.go @@ -0,0 +1,202 @@ +package main + +import ( + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + "github.com/go-zoox/cli" +) + +func main() { + app := cli.NewSingleProgram(&cli.SingleProgramConfig{ + Name: "chatgpt-for-chatbot-feishu", + Usage: "chatgpt-for-chatbot-feishu is a portable chatgpt server", + Version: Version, + Flags: []cli.Flag{ + &cli.IntFlag{ + Name: "port", + Usage: "server port", + Aliases: []string{"p"}, + EnvVars: []string{"PORT"}, + Value: 8080, + }, + &cli.StringFlag{ + Name: "api-path", + Usage: "custom api path, default: /", + EnvVars: []string{"API_PATH"}, + Value: "/", + }, + &cli.StringFlag{ + Name: "openai-api-key", + Usage: "OpenAI API Key", + EnvVars: []string{"OPENAI_API_KEY"}, + // Required: true, + }, + &cli.Int64Flag{ + Name: "openai-api-timeout", + Usage: "OpenAI API Timeout, unit: second, default: 300", + EnvVars: []string{"OPENAI_API_TIMEOUT"}, + Value: 300, + }, + &cli.StringFlag{ + Name: "openai-api-server", + Usage: "OpenAI API Server", + EnvVars: []string{"OPENAI_API_SERVER"}, + }, + &cli.StringFlag{ + Name: "openai-api-type", + Usage: "OpenAI API Type", + EnvVars: []string{"OPENAI_API_TYPE"}, + }, + &cli.StringFlag{ + Name: "openai-azure-resource", + Usage: "Azure OpenAI Service Resource", + EnvVars: []string{"OPENAI_AZURE_RESOURCE"}, + }, + &cli.StringFlag{ + Name: "openai-azure-deployment", + Usage: "Azure OpenAI Service Deployment", + EnvVars: []string{"OPENAI_AZURE_DEPLOYMENT"}, + }, + &cli.StringFlag{ + Name: "openai-azure-api-version", + Usage: "Azure OpenAI Service API Version", + EnvVars: []string{"OPENAI_AZURE_API_VERSION"}, + }, + &cli.StringFlag{ + Name: "app-id", + Usage: "Feishu App ID", + EnvVars: []string{"APP_ID"}, + Required: true, + }, + &cli.StringFlag{ + Name: "app-secret", + Usage: "Feishu App SECRET", + EnvVars: []string{"APP_SECRET"}, + Required: true, + }, + &cli.StringFlag{ + Name: "encrypt-key", + Usage: "enable encryption if you need", + EnvVars: []string{"ENCRYPT_KEY"}, + }, + &cli.StringFlag{ + Name: "verification-token", + Usage: "enable token verification if you need", + EnvVars: []string{"VERIFICATION_TOKEN"}, + }, + &cli.StringFlag{ + Name: "report-url", + Usage: "Set error report url", + EnvVars: []string{"REPORT_URL"}, + }, + &cli.StringFlag{ + Name: "site-url", + Usage: "The Site URL", + EnvVars: []string{"SITE_URL"}, + }, + &cli.StringFlag{ + Name: "openai-model", + Usage: "Custom open ai model", + EnvVars: []string{"OPENAI_MODEL"}, + }, + &cli.Float64Flag{ + Name: "openai-temperature", + Usage: "Custom open ai temperature", + EnvVars: []string{"OPENAI_TEMPERATURE"}, + Value: 0.3, + }, + &cli.StringFlag{ + Name: "feishu-base-uri", + Usage: "Custom feishu base uri for selfhosted Feishu", + EnvVars: []string{"FEISHU_BASE_URI"}, + }, + &cli.StringFlag{ + Name: "conversation-context", + Usage: "Custom chatgpt conversation context", + EnvVars: []string{"CONVERSATION_CONTEXT"}, + }, + &cli.StringFlag{ + Name: "conversation-language", + Usage: "Custom chatgpt conversation lanuage", + EnvVars: []string{"CONVERSATION_LANGUAGE"}, + }, + &cli.StringFlag{ + Name: "logs-dir", + Usage: "The logs dir for save logs", + EnvVars: []string{"LOGS_DIR"}, + Value: "/tmp/chatgpt-for-chatbot-feishu", + }, + &cli.StringFlag{ + Name: "logs-level", + Usage: "The logs level", + EnvVars: []string{"LOGS_LEVEL", "LOG_LEVEL"}, + Value: "INFO", + }, + &cli.StringFlag{ + Name: "offline-message", + Usage: "The message to use for offline status", + EnvVars: []string{"OFFLINE_MESSAGE"}, + Value: "robot is offline", + }, + &cli.StringFlag{ + Name: "admin-email", + Usage: "Sets the admin with admin email, who can run commands", + EnvVars: []string{"ADMIN_EMAIL"}, + }, + &cli.StringFlag{ + Name: "bot-name", + Usage: "Sets the bot name, default: ChatGPT", + EnvVars: []string{"BOT_NAME"}, + }, + &cli.StringFlag{ + Name: "proxy", + Usage: "Sets the request proxy", + EnvVars: []string{"PROXY", "HTTPS_PROXY"}, + }, + &cli.StringFlag{ + Name: "custom-command", + Usage: "Custom command, such as: doc => trigger /doc", + EnvVars: []string{"CUSTOM_COMMAND"}, + }, + &cli.StringFlag{ + Name: "custom-command-service", + Usage: "Custom command service, such as: https://example.com/api/doc", + EnvVars: []string{"CUSTOM_COMMAND_SERVICE"}, + }, + }, + }) + + app.Command(func(ctx *cli.Context) (err error) { + return ServeFeishuBot(&config.Config{ + LogsDir: ctx.String("logs-dir"), + LogsLevel: ctx.String("logs-level"), + Port: ctx.Int64("port"), + APIPath: ctx.String("api-path"), + OpenAIAPIKey: ctx.String("openai-api-key"), + OpenAIAPITimeout: ctx.Int64("openai-api-timeout"), + AppID: ctx.String("app-id"), + AppSecret: ctx.String("app-secret"), + EncryptKey: ctx.String("encrypt-key"), + VerificationToken: ctx.String("verification-token"), + ReportURL: ctx.String("report-url"), + SiteURL: ctx.String("site-url"), + OpenAIModel: ctx.String("openai-model"), + OpenAITemperature: ctx.Float64("openai-temperature"), + FeishuBaseURI: ctx.String("feishu-base-uri"), + ConversationContext: ctx.String("conversation-context"), + ConversationLanguage: ctx.String("conversation-language"), + OfflineMessage: ctx.String("offline-message"), + AdminEmail: ctx.String("admin-email"), + BotName: ctx.String("bot-name"), + Proxy: ctx.String("proxy"), + OpenAIAPIServer: ctx.String("openai-api-server"), + OpenAIAPIType: ctx.String("openai-api-type"), + OpenAIAzureResource: ctx.String("openai-azure-resource"), + OpenAIAzureDeployment: ctx.String("openai-azure-deployment"), + OpenAIAzureAPIVersion: ctx.String("openai-azure-api-version"), + CustomCommand: ctx.String("custom-command"), + CustomCommandService: ctx.String("custom-command-service"), + }) + }) + + app.Run() +} diff --git a/s.yaml b/s.yaml deleted file mode 100644 index 783af55..0000000 --- a/s.yaml +++ /dev/null @@ -1,58 +0,0 @@ -edition: 1.0.0 -name: feishuBot-chatGpt -access: "aliyun" # 秘钥别名 - -vars: # 全局变量 - region: "ap-southeast-1" - -services: - helloworld: - component: fc - actions: - pre-deploy: - - run: go mod tidy - path: ./code - - run: GO111MODULE=on GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o - target/main main.go - path: ./code - # post-deploy: - # - run: rm -rf target - # path: ./code - # 配置参考https://docs.serverless-devs.com/fc/yaml/readme - props: # 组件的属性值 - region: ${vars.region} # 关于变量的使用方法,可以参考:https://www.serverless-devs.com/serverless-devs/yaml#变量赋值 - service: - name: "feishubot" - description: "Serverless Devs Website Service" - function: - name: "feishu-chatgpt" - description: 'a simple feishubot by serverless devs' - codeUri: './code' - cAPort: 9000 - customRuntimeConfig: - command: - - ./target/main - environmentVariables: {} - handler: index.handler - instanceConcurrency: 20 - instanceType: e1 - memorySize: 128 - runtime: custom - timeout: 120 - internetAccess: true - triggers: - - name: httpTrigger - type: http - config: - authType: anonymous - methods: - - GET - - POST - customDomains: - - domainName: auto - protocol: HTTP - routeConfigs: - - path: /* - methods: - - GET - - POST diff --git a/server.go b/server.go new file mode 100644 index 0000000..f03e683 --- /dev/null +++ b/server.go @@ -0,0 +1,184 @@ +package main + +import ( + "time" + + "github.com/go-zoox/chalk" + "github.com/go-zoox/chatbot-feishu" + "github.com/go-zoox/chatgpt-for-chatbot-feishu/commands" + "github.com/go-zoox/chatgpt-for-chatbot-feishu/config" + openaiclient "github.com/go-zoox/openai-client" + "github.com/go-zoox/zoox" + "github.com/go-zoox/zoox/defaults" + + "github.com/go-zoox/core-utils/fmt" + "github.com/go-zoox/feishu" + + chatgpt "github.com/go-zoox/chatgpt-client" + feishuEvent "github.com/go-zoox/feishu/event" + "github.com/go-zoox/logger" +) + +func ServeFeishuBot(cfg *config.Config) (err error) { + if cfg.OfflineMessage == "" { + cfg.OfflineMessage = "robot is offline" + } + + if cfg.OpenAIModel == "" { + cfg.OpenAIModel = openaiclient.ModelGPT_4 + } + + logger.Infof("###### Settings START #######") + logger.Infof("Serve Version: %s", Version) + logger.Infof("Serve at PORT: %d", cfg.Port) + logger.Infof("Serve at API_PATH: %s", cfg.APIPath) + logger.Infof("###### Settings END #######") + + logs := &Logs{ + Dir: cfg.LogsDir, + Level: cfg.LogsLevel, + } + if err := logs.Setup(); err != nil { + return fmt.Errorf("failed to setup logs: %v", err) + } + + chatgptClient, err := chatgpt.New(&chatgpt.Config{ + APIKey: cfg.OpenAIAPIKey, + APIServer: cfg.OpenAIAPIServer, + APIType: cfg.OpenAIAPIType, + AzureResource: cfg.OpenAIAzureResource, + AzureDeployment: cfg.OpenAIAzureDeployment, + AzureAPIVersion: cfg.OpenAIAzureAPIVersion, + ConversationContext: cfg.ConversationContext, + ConversationLanguage: cfg.ConversationLanguage, + ChatGPTName: cfg.BotName, + Proxy: cfg.Proxy, + Timeout: time.Duration(cfg.OpenAIAPITimeout) * time.Second, + }) + if err != nil { + return fmt.Errorf("failed to create chatgpt client: %v", err) + } + + feishuClient := feishu.New(&feishu.Config{ + AppID: cfg.AppID, + AppSecret: cfg.AppSecret, + BaseURI: cfg.FeishuBaseURI, + }) + + cfg.Version = Version + cfg.IsInService = true + + tryToGetBotInfo := func() { + for { + if cfg.BotInfo != nil { + break + } + + logger.Infof("Trying to get bot info ...") + cfg.BotInfo, err = feishuClient.Bot().GetBotInfo() + if err != nil { + logger.Errorf("failed to get bot info: %v", err) + return + } + + logger.Infof("Bot Name: %s", cfg.BotInfo.AppName) + logger.Infof("Feishu Bot Online ...") + time.Sleep(3 * time.Second) + } + } + + go func() { + tryToGetBotInfo() + }() + + fmt.PrintJSON(map[string]interface{}{ + "version": Version, + "cfg": cfg, + }) + + if cfg.SiteURL != "" { + logger.Infof("") + logger.Infof("###### Feishu Configuration START #######") + logger.Infof("# %s:%s", chalk.Red("飞书事件订阅请求地址"), chalk.Green(fmt.Sprintf("%s%s", cfg.SiteURL, cfg.APIPath))) + logger.Infof("###### Feishu Configuration END #######") + logger.Infof("") + } + + feishuchatbot, err := chatbot.New(&chatbot.Config{ + Port: cfg.Port, + Path: cfg.APIPath, + AppID: cfg.AppID, + AppSecret: cfg.AppSecret, + VerificationToken: cfg.VerificationToken, + EncryptKey: cfg.EncryptKey, + }) + if err != nil { + return fmt.Errorf("failed to create feishu chatbot: %v", err) + } + + feishuchatbot.OnCommand("ping", commands.CreatePingCommand(feishuClient, chatgptClient)) + + feishuchatbot.OnCommand("offline", commands.CreateOfflineCommand(feishuClient, chatgptClient, cfg)) + + feishuchatbot.OnCommand("online", commands.CreateOnlineCommand(feishuClient, chatgptClient, cfg)) + + feishuchatbot.OnCommand("model", commands.CreateModelCommand(feishuClient, chatgptClient, cfg)) + + feishuchatbot.OnCommand("reset", commands.CreateResetCommand(feishuClient, chatgptClient, cfg)) + + feishuchatbot.OnCommand("message", commands.CreateMessageCommand(feishuClient, chatgptClient, cfg)) + feishuchatbot.OnCommand("问答", commands.CreateMessageCommand(feishuClient, chatgptClient, cfg)) + + feishuchatbot.OnCommand("draw", commands.CreateDrawCommand(feishuClient, chatgptClient)) + feishuchatbot.OnCommand("画图", commands.CreateDrawCommand(feishuClient, chatgptClient)) + + if cfg.CustomCommand != "" && cfg.CustomCommandService != "" { + feishuchatbot.OnCommand(cfg.CustomCommand, commands.CreateCustomCommand(feishuClient, chatgptClient, cfg)) + } + + feishuchatbot.OnMessage(func(text string, request *feishuEvent.EventRequest, reply func(content string, msgType ...string) error) error { + return commands. + CreateMessageCommand(feishuClient, chatgptClient, cfg). + Handler([]string{text}, request, reply) + }) + + // return feishuchatbot.Run() + + return run( + feishuchatbot, + cfg.Port, + cfg.APIPath, + cfg.OpenAIAPIKey, + cfg.OpenAIAPIServer, + cfg.OpenAIAPIType, + cfg.OpenAIAzureResource, + cfg.OpenAIAzureDeployment, + cfg.OpenAIAzureAPIVersion, + ) +} + +func run( + chatbot chatbot.ChatBot, + port int64, + path, + OpenAIAPIKey, + OpenAIAPIServer, + OpenAIAPIType, + OpenAIAzureResource, + OpenAIAzureDeployment, + OpenAIAzureAPIVersion string, +) error { + if OpenAIAPIServer == "" { + OpenAIAPIServer = openaiclient.DefaultAPIServer + } + + app := defaults.Application() + + app.Post(path, chatbot.Handler()) + + app.Get(path, func(ctx *zoox.Context) { + ctx.String(200, "OK") + }) + + return app.Run(fmt.Sprintf(":%d", port)) +} diff --git a/version.go b/version.go new file mode 100644 index 0000000..d6edad3 --- /dev/null +++ b/version.go @@ -0,0 +1,4 @@ +package main + +// Version is the version of lighthouse +var Version = "1.10.3"