Download api/server/services/Endpoints/google/buildOptions.js from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/server/services/Endpoints/google/buildOptions.js
- Command line
-
hf download hf://spaces/Zhitomir/chat/api/server/services/Endpoints/google/buildOptions.js
-
curl -L -o buildOptions.js https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/server/services/Endpoints/google/buildOptions.js
378 Bytes
| const buildOptions = (endpoint, parsedBody) => { | |
| const { examples, modelLabel, promptPrefix, iconURL, greeting, spec, ...rest } = parsedBody; | |
| const endpointOption = { | |
| examples, | |
| endpoint, | |
| modelLabel, | |
| promptPrefix, | |
| iconURL, | |
| greeting, | |
| spec, | |
| modelOptions: { | |
| ...rest, | |
| }, | |
| }; | |
| return endpointOption; | |
| }; | |
| module.exports = buildOptions; | |