mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-30 23:28:52 +01:00
feat(Anthropic, Google, OpenAI): allow changing settings/presets conversations mid-convo (#636)
feat(AnthropicClient.js, GoogleClient.js): add promptPrefix and modelLabel to getSaveOptions method
This commit is contained in:
parent
1b999108e4
commit
637bb6bc11
6 changed files with 18 additions and 11 deletions
|
|
@ -37,8 +37,8 @@ export default function NewConversationMenu() {
|
|||
const availableEndpoints = useRecoilValue(store.availableEndpoints);
|
||||
const endpointsConfig = useRecoilValue(store.endpointsConfig);
|
||||
const [presets, setPresets] = useRecoilState(store.presets);
|
||||
const modularEndpoints = new Set(['gptPlugins', 'anthropic', 'google', 'openAI']);
|
||||
|
||||
// const conversation = useRecoilValue(store.conversation) || {};
|
||||
const { endpoint, conversationId } = conversation;
|
||||
const { newConversation } = store.useConversation();
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ export default function NewConversationMenu() {
|
|||
const onSelectPreset = (newPreset) => {
|
||||
setMenuOpen(false);
|
||||
|
||||
if (endpoint === 'gptPlugins' && newPreset?.endpoint === 'gptPlugins') {
|
||||
if (modularEndpoints.has(endpoint) && modularEndpoints.has(newPreset?.endpoint)) {
|
||||
const currentConvo = getDefaultConversation({
|
||||
conversation,
|
||||
endpointsConfig,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue