Download sdk/translator/format.go from shimen/API: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/shimen/API/resolve/main/sdk/translator/format.go
- Command line
-
hf download hf://spaces/shimen/API/sdk/translator/format.go
-
curl -L -o format.go https://huggingface.co/spaces/shimen/API/resolve/main/sdk/translator/format.go
336 Bytes
| package translator | |
| // Format identifies a request/response schema used inside the proxy. | |
| type Format string | |
| // FromString converts an arbitrary identifier to a translator format. | |
| func FromString(v string) Format { | |
| return Format(v) | |
| } | |
| // String returns the raw schema identifier. | |
| func (f Format) String() string { | |
| return string(f) | |
| } | |