Download service/task.go from AZILS/new-api: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/AZILS/new-api/resolve/main/service/task.go
- Command line
-
hf download hf://spaces/AZILS/new-api/service/task.go
-
curl -L -o task.go https://huggingface.co/spaces/AZILS/new-api/resolve/main/service/task.go
248 Bytes
| package service | |
| import ( | |
| "strings" | |
| "github.com/QuantumNous/new-api/constant" | |
| ) | |
| func CoverTaskActionToModelName(platform constant.TaskPlatform, action string) string { | |
| return strings.ToLower(string(platform)) + "_" + strings.ToLower(action) | |
| } | |