Download controller/api.go from zyd123/gen: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/spaces/zyd123/gen/resolve/main/controller/api.go
- Command line
-
hf download hf://spaces/zyd123/gen/controller/api.go
-
curl -L -o api.go https://huggingface.co/spaces/zyd123/gen/resolve/main/controller/api.go
245 Bytes
| package controller | |
| import ( | |
| "github.com/deanxv/CycleTLS/cycletls" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| // ChatForOpenAI 处理OpenAI聊天请求 | |
| func InitModelChatMap(c *gin.Context) { | |
| client := cycletls.Init() | |
| defer safeClose(client) | |
| // TODO | |
| } | |