mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
fix: Ensure Message Send Requires Key 🔑 (#1281)
* fix: only allow message send when key is provided when required - create useRequiresKey hook - pass same disabled prop to Textarea, AttachFile, and SendButton - EndpointItem: add localization, stopPropagation, and remove commented code - separate some hooks to new Input dir - completely remove textareaHeight recoil state as is not needed - update imports for moved hooks - pass disabled prop to useTextarea * feat: add localization to textarea placeholders
This commit is contained in:
parent
f6118879e5
commit
00b6af8c74
14 changed files with 54 additions and 50 deletions
|
|
@ -118,6 +118,8 @@ export default {
|
|||
com_endpoint_bing_system_message_placeholder:
|
||||
'WARNING: Misuse of this feature can get you BANNED from using Bing! Click on \'System Message\' for full instructions and the default message if omitted, which is the \'Sydney\' preset that is considered safe.',
|
||||
com_endpoint_system_message: 'System Message',
|
||||
com_endpoint_message: 'Message',
|
||||
com_endpoint_message_not_appendable: 'Edit your message or Regenerate.',
|
||||
com_endpoint_default_blank: 'default: blank',
|
||||
com_endpoint_default_false: 'default: false',
|
||||
com_endpoint_default_creative: 'default: creative',
|
||||
|
|
@ -205,6 +207,7 @@ export default {
|
|||
com_endpoint_skip_hover:
|
||||
'Enable skipping the completion step, which reviews the final answer and generated steps',
|
||||
com_endpoint_config_key: 'Set API Key',
|
||||
com_endpoint_config_placeholder: 'Set your Key in the Header menu to chat.',
|
||||
com_endpoint_config_key_for: 'Set API Key for',
|
||||
com_endpoint_config_key_name: 'Key',
|
||||
com_endpoint_config_value: 'Enter value for',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue