mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-24 19:26:14 +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
|
|
@ -15,7 +15,7 @@ function OpenAIOptions() {
|
|||
const [saveAsDialogShow, setSaveAsDialogShow] = useState(false);
|
||||
|
||||
const [conversation, setConversation] = useRecoilState(store.conversation) || {};
|
||||
const { endpoint, conversationId } = conversation;
|
||||
const { endpoint } = conversation;
|
||||
const {
|
||||
model,
|
||||
chatGptLabel,
|
||||
|
|
@ -28,8 +28,9 @@ function OpenAIOptions() {
|
|||
|
||||
const endpointsConfig = useRecoilValue(store.endpointsConfig);
|
||||
const isOpenAI = endpoint === 'openAI' || endpoint === 'azureOpenAI';
|
||||
if (!isOpenAI) return null;
|
||||
if (conversationId !== 'new') return null;
|
||||
if (!isOpenAI) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const models = endpointsConfig?.[endpoint]?.['availableModels'] || [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue