mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
feat(conversationPreset.js): add context and systemMessage fields to conversation preset schema feat(askBingAI.js): pass context and systemMessage parameters to ask function feat(Settings.jsx): add toneStyle prop to BingAISettings component feat(BingAIOptions/index.jsx): add useEffect to check if advanced mode is needed feat(cleanupPreset.js): add context and systemMessage fields to cleaned up preset object feat(getDefaultConversation.js): add context and systemMessage fields to default conversation object feat(handleSubmit.js): add context and systemMessage fields to message object
78 lines
1.3 KiB
JavaScript
78 lines
1.3 KiB
JavaScript
module.exports = {
|
|
// endpoint: [azureOpenAI, openAI, bingAI, chatGPTBrowser]
|
|
endpoint: {
|
|
type: String,
|
|
default: null,
|
|
required: true
|
|
},
|
|
// for azureOpenAI, openAI, chatGPTBrowser only
|
|
model: {
|
|
type: String,
|
|
default: null,
|
|
required: false
|
|
},
|
|
// for azureOpenAI, openAI only
|
|
chatGptLabel: {
|
|
type: String,
|
|
default: null,
|
|
required: false
|
|
},
|
|
promptPrefix: {
|
|
type: String,
|
|
default: null,
|
|
required: false
|
|
},
|
|
temperature: {
|
|
type: Number,
|
|
default: 1,
|
|
required: false
|
|
},
|
|
top_p: {
|
|
type: Number,
|
|
default: 1,
|
|
required: false
|
|
},
|
|
presence_penalty: {
|
|
type: Number,
|
|
default: 0,
|
|
required: false
|
|
},
|
|
frequency_penalty: {
|
|
type: Number,
|
|
default: 0,
|
|
required: false
|
|
},
|
|
// for bingai only
|
|
jailbreak: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
jailbreakConversationId: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
conversationSignature: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
context: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
systemMessage: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
clientId: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
invocationId: {
|
|
type: Number,
|
|
default: 1
|
|
},
|
|
toneStyle: {
|
|
type: String,
|
|
default: null
|
|
}
|
|
};
|