├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ └── feature_request.md ├── close_issue.py └── workflows │ ├── CloseIssue.yml │ ├── docker-image-amd64.yml │ ├── docker-image-arm64.yml │ ├── github-pages.yml │ ├── linux-release.yml │ ├── macos-release.yml │ └── windows-release.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── VERSION ├── alexsidebar-api └── api.go ├── check └── check.go ├── common ├── config │ └── config.go ├── constants.go ├── database.go ├── embed-file-system.go ├── env │ └── helper.go ├── filetype.go ├── helper │ ├── helper.go │ ├── key.go │ └── time.go ├── init.go ├── loggger │ ├── constants.go │ └── logger.go ├── random │ └── main.go ├── rate-limit.go ├── response.go ├── send-res.go ├── snowflakeid.go ├── types │ └── main.go └── utils.go ├── controller └── chat.go ├── cycletls ├── client.go ├── connect.go ├── cookie.go ├── errors.go ├── extensions.go ├── index.go ├── roundtripper.go └── utils.go ├── docker-compose.yml ├── docs ├── docs.go ├── img_1.png ├── img_3.png ├── img_4.png ├── swagger.json └── swagger.yaml ├── go.mod ├── go.sum ├── google-api └── api.go ├── job └── cookie.go ├── main.go ├── middleware ├── auth.go ├── cache.go ├── cors.go ├── ip-list.go ├── logger.go ├── rate-limit.go └── request-id.go ├── model ├── openai.go └── token_encoder.go └── router ├── api-router.go ├── main.go └── web.go /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/close_issue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/close_issue.py -------------------------------------------------------------------------------- /.github/workflows/CloseIssue.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/workflows/CloseIssue.yml -------------------------------------------------------------------------------- /.github/workflows/docker-image-amd64.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/workflows/docker-image-amd64.yml -------------------------------------------------------------------------------- /.github/workflows/docker-image-arm64.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/workflows/docker-image-arm64.yml -------------------------------------------------------------------------------- /.github/workflows/github-pages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/workflows/github-pages.yml -------------------------------------------------------------------------------- /.github/workflows/linux-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/workflows/linux-release.yml -------------------------------------------------------------------------------- /.github/workflows/macos-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/workflows/macos-release.yml -------------------------------------------------------------------------------- /.github/workflows/windows-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.github/workflows/windows-release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/README.md -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /alexsidebar-api/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/alexsidebar-api/api.go -------------------------------------------------------------------------------- /check/check.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/check/check.go -------------------------------------------------------------------------------- /common/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/config/config.go -------------------------------------------------------------------------------- /common/constants.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/constants.go -------------------------------------------------------------------------------- /common/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/database.go -------------------------------------------------------------------------------- /common/embed-file-system.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/embed-file-system.go -------------------------------------------------------------------------------- /common/env/helper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/env/helper.go -------------------------------------------------------------------------------- /common/filetype.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/filetype.go -------------------------------------------------------------------------------- /common/helper/helper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/helper/helper.go -------------------------------------------------------------------------------- /common/helper/key.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/helper/key.go -------------------------------------------------------------------------------- /common/helper/time.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/helper/time.go -------------------------------------------------------------------------------- /common/init.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/init.go -------------------------------------------------------------------------------- /common/loggger/constants.go: -------------------------------------------------------------------------------- 1 | package logger 2 | 3 | var LogDir string 4 | -------------------------------------------------------------------------------- /common/loggger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/loggger/logger.go -------------------------------------------------------------------------------- /common/random/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/random/main.go -------------------------------------------------------------------------------- /common/rate-limit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/rate-limit.go -------------------------------------------------------------------------------- /common/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/response.go -------------------------------------------------------------------------------- /common/send-res.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/send-res.go -------------------------------------------------------------------------------- /common/snowflakeid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/snowflakeid.go -------------------------------------------------------------------------------- /common/types/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/types/main.go -------------------------------------------------------------------------------- /common/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/common/utils.go -------------------------------------------------------------------------------- /controller/chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/controller/chat.go -------------------------------------------------------------------------------- /cycletls/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/cycletls/client.go -------------------------------------------------------------------------------- /cycletls/connect.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/cycletls/connect.go -------------------------------------------------------------------------------- /cycletls/cookie.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/cycletls/cookie.go -------------------------------------------------------------------------------- /cycletls/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/cycletls/errors.go -------------------------------------------------------------------------------- /cycletls/extensions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/cycletls/extensions.go -------------------------------------------------------------------------------- /cycletls/index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/cycletls/index.go -------------------------------------------------------------------------------- /cycletls/roundtripper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/cycletls/roundtripper.go -------------------------------------------------------------------------------- /cycletls/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/cycletls/utils.go -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/docs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/docs/docs.go -------------------------------------------------------------------------------- /docs/img_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/docs/img_1.png -------------------------------------------------------------------------------- /docs/img_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/docs/img_3.png -------------------------------------------------------------------------------- /docs/img_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/docs/img_4.png -------------------------------------------------------------------------------- /docs/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/docs/swagger.json -------------------------------------------------------------------------------- /docs/swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/docs/swagger.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/go.sum -------------------------------------------------------------------------------- /google-api/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/google-api/api.go -------------------------------------------------------------------------------- /job/cookie.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/job/cookie.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/main.go -------------------------------------------------------------------------------- /middleware/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/middleware/auth.go -------------------------------------------------------------------------------- /middleware/cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/middleware/cache.go -------------------------------------------------------------------------------- /middleware/cors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/middleware/cors.go -------------------------------------------------------------------------------- /middleware/ip-list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/middleware/ip-list.go -------------------------------------------------------------------------------- /middleware/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/middleware/logger.go -------------------------------------------------------------------------------- /middleware/rate-limit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/middleware/rate-limit.go -------------------------------------------------------------------------------- /middleware/request-id.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/middleware/request-id.go -------------------------------------------------------------------------------- /model/openai.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/model/openai.go -------------------------------------------------------------------------------- /model/token_encoder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/model/token_encoder.go -------------------------------------------------------------------------------- /router/api-router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/router/api-router.go -------------------------------------------------------------------------------- /router/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/router/main.go -------------------------------------------------------------------------------- /router/web.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanxv/AlexSidebar2api/HEAD/router/web.go --------------------------------------------------------------------------------