mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-10 19:44:23 +01:00
🪨 fix: Minor AWS Bedrock/Misc. Improvements (#3974)
* refactor(EditMessage): avoid manipulation of native paste handling, leverage react-hook-form for textarea changes * style: apply better theming for MinimalIcon * fix(useVoicesQuery/useCustomConfigSpeechQuery): make sure to only try request once per render * feat: edit message content parts * fix(useCopyToClipboard): handle both assistants and agents content blocks * refactor: remove save & submit and update text content correctly * chore(.env.example/config): exclude unsupported bedrock models * feat: artifacts for aws bedrock * fix: export options for bedrock conversations
This commit is contained in:
parent
341e086d70
commit
1a1e6850a3
23 changed files with 441 additions and 203 deletions
|
|
@ -509,13 +509,33 @@ export const useGetAgentByIdQuery = (
|
|||
/** STT/TTS */
|
||||
|
||||
/* Text to speech voices */
|
||||
export const useVoicesQuery = (): UseQueryResult<t.VoiceResponse> => {
|
||||
return useQuery([QueryKeys.voices], () => dataService.getVoices());
|
||||
export const useVoicesQuery = (
|
||||
config?: UseQueryOptions<t.VoiceResponse>,
|
||||
): QueryObserverResult<t.VoiceResponse> => {
|
||||
return useQuery<t.VoiceResponse>([QueryKeys.voices], () => dataService.getVoices(), {
|
||||
refetchOnWindowFocus: false,
|
||||
refetchOnReconnect: false,
|
||||
refetchOnMount: false,
|
||||
retry: false,
|
||||
...config,
|
||||
});
|
||||
};
|
||||
|
||||
/* Custom config speech */
|
||||
export const useCustomConfigSpeechQuery = () => {
|
||||
return useQuery([QueryKeys.customConfigSpeech], () => dataService.getCustomConfigSpeech());
|
||||
export const useCustomConfigSpeechQuery = (
|
||||
config?: UseQueryOptions<t.TCustomConfigSpeechResponse>,
|
||||
): QueryObserverResult<t.TCustomConfigSpeechResponse> => {
|
||||
return useQuery<t.TCustomConfigSpeechResponse>(
|
||||
[QueryKeys.customConfigSpeech],
|
||||
() => dataService.getCustomConfigSpeech(),
|
||||
{
|
||||
refetchOnWindowFocus: false,
|
||||
refetchOnReconnect: false,
|
||||
refetchOnMount: false,
|
||||
retry: false,
|
||||
...config,
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
/** Prompt */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue