Download api/models/schema/defaults.js from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 2.77 kB
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/models/schema/defaults.js
- Command line
-
hf download hf://spaces/Zhitomir/chat/api/models/schema/defaults.js
-
curl -L -o defaults.js https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/models/schema/defaults.js
2.77 kB
| const conversationPreset = { | |
| // endpoint: [azureOpenAI, openAI, bingAI, anthropic, chatGPTBrowser] | |
| endpoint: { | |
| type: String, | |
| default: null, | |
| required: true, | |
| }, | |
| endpointType: { | |
| type: String, | |
| }, | |
| // for azureOpenAI, openAI, chatGPTBrowser only | |
| model: { | |
| type: String, | |
| required: false, | |
| }, | |
| // for azureOpenAI, openAI only | |
| chatGptLabel: { | |
| type: String, | |
| required: false, | |
| }, | |
| // for google only | |
| modelLabel: { | |
| type: String, | |
| required: false, | |
| }, | |
| promptPrefix: { | |
| type: String, | |
| required: false, | |
| }, | |
| temperature: { | |
| type: Number, | |
| required: false, | |
| }, | |
| top_p: { | |
| type: Number, | |
| required: false, | |
| }, | |
| // for google only | |
| topP: { | |
| type: Number, | |
| required: false, | |
| }, | |
| topK: { | |
| type: Number, | |
| required: false, | |
| }, | |
| maxOutputTokens: { | |
| type: Number, | |
| required: false, | |
| }, | |
| presence_penalty: { | |
| type: Number, | |
| required: false, | |
| }, | |
| frequency_penalty: { | |
| type: Number, | |
| required: false, | |
| }, | |
| // for bingai only | |
| jailbreak: { | |
| type: Boolean, | |
| }, | |
| context: { | |
| type: String, | |
| }, | |
| systemMessage: { | |
| type: String, | |
| }, | |
| toneStyle: { | |
| type: String, | |
| }, | |
| file_ids: { type: [{ type: String }], default: undefined }, | |
| // deprecated | |
| resendImages: { | |
| type: Boolean, | |
| }, | |
| // files | |
| resendFiles: { | |
| type: Boolean, | |
| }, | |
| imageDetail: { | |
| type: String, | |
| }, | |
| /* assistants */ | |
| assistant_id: { | |
| type: String, | |
| }, | |
| instructions: { | |
| type: String, | |
| }, | |
| stop: { type: [{ type: String }], default: undefined }, | |
| isArchived: { | |
| type: Boolean, | |
| default: false, | |
| }, | |
| /* UI Components */ | |
| iconURL: { | |
| type: String, | |
| }, | |
| greeting: { | |
| type: String, | |
| }, | |
| spec: { | |
| type: String, | |
| }, | |
| tools: { type: [{ type: String }], default: undefined }, | |
| maxContextTokens: { | |
| type: Number, | |
| }, | |
| max_tokens: { | |
| type: Number, | |
| }, | |
| }; | |
| const agentOptions = { | |
| model: { | |
| type: String, | |
| required: false, | |
| }, | |
| // for azureOpenAI, openAI only | |
| chatGptLabel: { | |
| type: String, | |
| required: false, | |
| }, | |
| modelLabel: { | |
| type: String, | |
| required: false, | |
| }, | |
| promptPrefix: { | |
| type: String, | |
| required: false, | |
| }, | |
| temperature: { | |
| type: Number, | |
| required: false, | |
| }, | |
| top_p: { | |
| type: Number, | |
| required: false, | |
| }, | |
| // for google only | |
| topP: { | |
| type: Number, | |
| required: false, | |
| }, | |
| topK: { | |
| type: Number, | |
| required: false, | |
| }, | |
| maxOutputTokens: { | |
| type: Number, | |
| required: false, | |
| }, | |
| presence_penalty: { | |
| type: Number, | |
| required: false, | |
| }, | |
| frequency_penalty: { | |
| type: Number, | |
| required: false, | |
| }, | |
| context: { | |
| type: String, | |
| }, | |
| systemMessage: { | |
| type: String, | |
| }, | |
| }; | |
| module.exports = { | |
| conversationPreset, | |
| agentOptions, | |
| }; | |