mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-18 08:28:10 +01:00
🪦 refactor: Remove Legacy Code (#10533)
* 🗑️ chore: Remove unused Legacy Provider clients and related helpers * Deleted OpenAIClient and GoogleClient files along with their associated tests. * Removed references to these clients in the clients index file. * Cleaned up typedefs by removing the OpenAISpecClient export. * Updated chat controllers to use the OpenAI SDK directly instead of the removed client classes. * chore/remove-openapi-specs * 🗑️ chore: Remove unused mergeSort and misc utility functions * Deleted mergeSort.js and misc.js files as they are no longer needed. * Removed references to cleanUpPrimaryKeyValue in messages.js and adjusted related logic. * Updated mongoMeili.ts to eliminate local implementations of removed functions. * chore: remove legacy endpoints * chore: remove all plugins endpoint related code * chore: remove unused prompt handling code and clean up imports * Deleted handleInputs.js and instructions.js files as they are no longer needed. * Removed references to these files in the prompts index.js. * Updated docker-compose.yml to simplify reverse proxy configuration. * chore: remove unused LightningIcon import from Icons.tsx * chore: clean up translation.json by removing deprecated and unused keys * chore: update Jest configuration and remove unused mock file * Simplified the setupFiles array in jest.config.js by removing the fetchEventSource mock. * Deleted the fetchEventSource.js mock file as it is no longer needed. * fix: simplify endpoint type check in Landing and ConversationStarters components * Updated the endpoint type check to use strict equality for better clarity and performance. * Ensured consistency in the handling of the azureOpenAI endpoint across both components. * chore: remove unused dependencies from package.json and package-lock.json * chore: remove legacy EditController, associated routes and imports * chore: update banResponse logic to refine request handling for banned users * chore: remove unused validateEndpoint middleware and its references * chore: remove unused 'res' parameter from initializeClient in multiple endpoint files * chore: remove unused 'isSmallScreen' prop from BookmarkNav and NewChat components; clean up imports in ArchivedChatsTable and useSetIndexOptions hooks; enhance localization in PromptVersions * chore: remove unused import of Constants and TMessage from MobileNav; retain only necessary QueryKeys import * chore: remove unused TResPlugin type and related references; clean up imports in types and schemas
This commit is contained in:
parent
b6dcefc53a
commit
656e1abaea
161 changed files with 256 additions and 10513 deletions
|
|
@ -222,7 +222,6 @@
|
|||
"com_download_expires": "(click here to download - expires {{0}})",
|
||||
"com_endpoint": "Endpoint",
|
||||
"com_endpoint_agent": "Agent",
|
||||
"com_endpoint_agent_model": "Agent Model (Recommended: GPT-3.5)",
|
||||
"com_endpoint_agent_placeholder": "Please select an Agent",
|
||||
"com_endpoint_ai": "AI",
|
||||
"com_endpoint_anthropic_maxoutputtokens": "Maximum number of tokens that can be generated in the response. Specify a lower value for shorter responses and a higher value for longer responses. Note: models may stop before reaching this maximum.",
|
||||
|
|
@ -236,8 +235,6 @@
|
|||
"com_endpoint_assistant": "Assistant",
|
||||
"com_endpoint_assistant_model": "Assistant Model",
|
||||
"com_endpoint_assistant_placeholder": "Please select an Assistant from the right-hand Side Panel",
|
||||
"com_endpoint_completion": "Completion",
|
||||
"com_endpoint_completion_model": "Completion Model (Recommended: GPT-4)",
|
||||
"com_endpoint_config_click_here": "Click Here",
|
||||
"com_endpoint_config_google_api_info": "To get your Generative Language API key (for Gemini),",
|
||||
"com_endpoint_config_google_api_key": "Google API Key",
|
||||
|
|
@ -265,18 +262,13 @@
|
|||
"com_endpoint_custom_name": "Custom Name",
|
||||
"com_endpoint_default": "default",
|
||||
"com_endpoint_default_blank": "default: blank",
|
||||
"com_endpoint_default_empty": "default: empty",
|
||||
"com_endpoint_default_with_num": "default: {{0}}",
|
||||
"com_endpoint_deprecated": "Deprecated",
|
||||
"com_endpoint_deprecated_info": "This endpoint is deprecated and may be removed in future versions, please use the agent endpoint instead",
|
||||
"com_endpoint_deprecated_info_a11y": "The plugin endpoint is deprecated and may be removed in future versions, please use the agent endpoint instead",
|
||||
"com_endpoint_disable_streaming": "Disable streaming responses and receive the complete response at once. Useful for models like o3 that require organization verification for streaming",
|
||||
"com_endpoint_disable_streaming_label": "Disable Streaming",
|
||||
"com_endpoint_examples": " Presets",
|
||||
"com_endpoint_export": "Export",
|
||||
"com_endpoint_export_share": "Export/Share",
|
||||
"com_endpoint_frequency_penalty": "Frequency Penalty",
|
||||
"com_endpoint_func_hover": "Enable use of Plugins as OpenAI Functions",
|
||||
"com_endpoint_google_custom_name_placeholder": "Set a custom name for Google",
|
||||
"com_endpoint_google_maxoutputtokens": "Maximum number of tokens that can be generated in the response. Specify a lower value for shorter responses and a higher value for longer responses. Note: models may stop before reaching this maximum.",
|
||||
"com_endpoint_google_temp": "Higher values = more random, while lower values = more focused and deterministic. We recommend altering this or Top P but not both.",
|
||||
|
|
@ -314,9 +306,6 @@
|
|||
"com_endpoint_output": "Output",
|
||||
"com_endpoint_plug_image_detail": "Image Detail",
|
||||
"com_endpoint_plug_resend_files": "Resend Files",
|
||||
"com_endpoint_plug_set_custom_instructions_for_gpt_placeholder": "Set custom instructions to include in System Message. Default: none",
|
||||
"com_endpoint_plug_skip_completion": "Skip Completion",
|
||||
"com_endpoint_plug_use_functions": "Use Functions",
|
||||
"com_endpoint_presence_penalty": "Presence Penalty",
|
||||
"com_endpoint_preset": "preset",
|
||||
"com_endpoint_preset_custom_name_placeholder": "something needs to go here. was empty",
|
||||
|
|
@ -348,7 +337,6 @@
|
|||
"com_endpoint_search_models": "Search models...",
|
||||
"com_endpoint_search_var": "Search {{0}}...",
|
||||
"com_endpoint_set_custom_name": "Set a custom name, in case you can find this preset",
|
||||
"com_endpoint_skip_hover": "Enable skipping the completion step, which reviews the final answer and generated steps",
|
||||
"com_endpoint_stop": "Stop Sequences",
|
||||
"com_endpoint_stop_placeholder": "Separate values by pressing `Enter`",
|
||||
"com_endpoint_temperature": "Temperature",
|
||||
|
|
@ -550,10 +538,6 @@
|
|||
"com_nav_open_sidebar": "Open sidebar",
|
||||
"com_nav_playback_rate": "Audio Playback Rate",
|
||||
"com_nav_plugin_auth_error": "There was an error attempting to authenticate this plugin. Please try again.",
|
||||
"com_nav_plugin_install": "Install",
|
||||
"com_nav_plugin_search": "Search plugins",
|
||||
"com_nav_plugin_store": "Plugin store",
|
||||
"com_nav_plugin_uninstall": "Uninstall",
|
||||
"com_nav_plus_command": "+-Command",
|
||||
"com_nav_plus_command_description": "Toggle command \"+\" for adding a multi-response setting",
|
||||
"com_nav_profile_picture": "Profile Picture",
|
||||
|
|
@ -594,8 +578,6 @@
|
|||
"com_nav_user_msg_markdown": "Render user messages as markdown",
|
||||
"com_nav_user_name_display": "Display username in messages",
|
||||
"com_nav_voice_select": "Voice",
|
||||
"com_show_agent_settings": "Show Agent Settings",
|
||||
"com_show_completion_settings": "Show Completion Settings",
|
||||
"com_show_examples": "Show Examples",
|
||||
"com_sidepanel_agent_builder": "Agent Builder",
|
||||
"com_sidepanel_assistant_builder": "Assistant Builder",
|
||||
|
|
@ -771,6 +753,7 @@
|
|||
"com_ui_bookmarks_title": "Title",
|
||||
"com_ui_bookmarks_update_error": "There was an error updating the bookmark",
|
||||
"com_ui_bookmarks_update_success": "Bookmark updated successfully",
|
||||
"com_ui_by_author": "by {{0}}",
|
||||
"com_ui_bulk_delete_error": "Failed to delete shared links",
|
||||
"com_ui_callback_url": "Callback URL",
|
||||
"com_ui_cancel": "Cancel",
|
||||
|
|
@ -1223,7 +1206,6 @@
|
|||
"com_ui_select_provider_first": "Select a provider first",
|
||||
"com_ui_select_region": "Select a region",
|
||||
"com_ui_select_search_model": "Search model by name",
|
||||
"com_ui_select_search_plugin": "Search plugin by name",
|
||||
"com_ui_select_search_provider": "Search provider by name",
|
||||
"com_ui_select_search_region": "Search region by name",
|
||||
"com_ui_set": "Set",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue