Spaces:
Runtime error
Runtime error
Download pkg/plugins/plugins.go from dvc890/go-chatgpt-api-plus: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/dvc890/go-chatgpt-api-plus/resolve/main/pkg/plugins/plugins.go
- Command line
-
hf download hf://spaces/dvc890/go-chatgpt-api-plus/pkg/plugins/plugins.go
-
curl -L -o plugins.go https://huggingface.co/spaces/dvc890/go-chatgpt-api-plus/resolve/main/pkg/plugins/plugins.go
327 Bytes
| package plugins | |
| import ( | |
| "WarpGPT/pkg/db" | |
| "WarpGPT/pkg/env" | |
| "github.com/gin-gonic/gin" | |
| "github.com/sirupsen/logrus" | |
| ) | |
| type Component struct { | |
| Engine *gin.Engine | |
| Db db.DB | |
| Logger *logrus.Logger | |
| Env *env.ENV | |
| Auth func(arkType int, puid string) (string, error) | |
| } | |
| type Plugin interface { | |
| Run(com *Component) | |
| } | |