Download internal/interfaces/types.go from shimen/ShinAPI: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/spaces/shimen/ShinAPI/resolve/main/internal/interfaces/types.go
- Command line
-
hf download hf://spaces/shimen/ShinAPI/internal/interfaces/types.go
-
curl -L -o types.go https://huggingface.co/spaces/shimen/ShinAPI/resolve/main/internal/interfaces/types.go
711 Bytes
| // Package interfaces provides type aliases for backwards compatibility with translator functions. | |
| // It defines common interface types used throughout the CLI Proxy API for request and response | |
| // transformation operations, maintaining compatibility with the SDK translator package. | |
| package interfaces | |
| import sdktranslator "github.com/router-for-me/CLIProxyAPI/v6/sdk/translator" | |
| // Backwards compatible aliases for translator function types. | |
| type TranslateRequestFunc = sdktranslator.RequestTransform | |
| type TranslateResponseFunc = sdktranslator.ResponseStreamTransform | |
| type TranslateResponseNonStreamFunc = sdktranslator.ResponseNonStreamTransform | |
| type TranslateResponse = sdktranslator.ResponseTransform | |