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