Spaces:
Runtime error
Runtime error
Download types/types.ts from deepcode-ai/code-translator: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/deepcode-ai/code-translator/resolve/main/types/types.ts
- Command line
-
hf download hf://spaces/deepcode-ai/code-translator/types/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/deepcode-ai/code-translator/resolve/main/types/types.ts
257 Bytes
| export type OpenAIModel = 'gpt-3.5-turbo' | 'gpt-4'; | |
| export interface TranslateBody { | |
| inputLanguage: string; | |
| outputLanguage: string; | |
| inputCode: string; | |
| model: OpenAIModel; | |
| apiKey: string; | |
| } | |
| export interface TranslateResponse { | |
| code: string; | |
| } | |