mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
feat: count tokens for context
feat(BingAI): convert toneStyle to lowercase before setting it in state feat(BingAI): pass setToneStyle function to Settings component refactor(BingAI): remove unused import and change setOption to setToneStyle in Settings component refactor(fetchers.js): add axiosPost function for debounced axios post requests
This commit is contained in:
parent
cef98070e9
commit
1a196580b2
5 changed files with 56 additions and 43 deletions
|
|
@ -21,7 +21,7 @@ function BingAIOptions() {
|
|||
if (conversationId !== 'new') return null;
|
||||
|
||||
const changeHandler = value => {
|
||||
setConversation(prevState => ({ ...prevState, toneStyle: value }));
|
||||
setConversation(prevState => ({ ...prevState, toneStyle: value.toLowerCase() }));
|
||||
};
|
||||
|
||||
const triggerAdvancedMode = () => setAdvancedMode(prev => !prev);
|
||||
|
|
@ -120,6 +120,7 @@ function BingAIOptions() {
|
|||
systemMessage={systemMessage}
|
||||
jailbreak={jailbreak}
|
||||
toneStyle={toneStyle}
|
||||
setToneStyle={changeHandler}
|
||||
setOption={setOption}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue