mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🤖 feat: GPT-4.1 (#6880)
* fix: Agent Builder setting not applying in useSideNavLinks * fix: Remove unused type imports in useSideNavLinks * feat: gpt-4.1 * fix: Update getCacheMultiplier and getMultiplier tests to use dynamic token values * feat: Add gpt-4.1 to the list of vision models * chore: Bump version of librechat-data-provider to 0.7.792
This commit is contained in:
parent
64bd373bc8
commit
52b3ed54ca
9 changed files with 224 additions and 48 deletions
|
|
@ -8,7 +8,7 @@ import {
|
|||
EModelEndpoint,
|
||||
Permissions,
|
||||
} from 'librechat-data-provider';
|
||||
import type { TConfig, TInterfaceConfig, TEndpointsConfig } from 'librechat-data-provider';
|
||||
import type { TInterfaceConfig, TEndpointsConfig } from 'librechat-data-provider';
|
||||
import type { NavLink } from '~/common';
|
||||
import AgentPanelSwitch from '~/components/SidePanel/Agents/AgentPanelSwitch';
|
||||
import BookmarkPanel from '~/components/SidePanel/Bookmarks/BookmarkPanel';
|
||||
|
|
@ -21,8 +21,6 @@ import { useHasAccess } from '~/hooks';
|
|||
|
||||
export default function useSideNavLinks({
|
||||
hidePanel,
|
||||
assistants,
|
||||
agents,
|
||||
keyProvided,
|
||||
endpoint,
|
||||
endpointType,
|
||||
|
|
@ -30,8 +28,6 @@ export default function useSideNavLinks({
|
|||
endpointsConfig,
|
||||
}: {
|
||||
hidePanel: () => void;
|
||||
assistants?: TConfig | null;
|
||||
agents?: TConfig | null;
|
||||
keyProvided: boolean;
|
||||
endpoint?: EModelEndpoint | null;
|
||||
endpointType?: EModelEndpoint | null;
|
||||
|
|
@ -59,8 +55,8 @@ export default function useSideNavLinks({
|
|||
const links: NavLink[] = [];
|
||||
if (
|
||||
isAssistantsEndpoint(endpoint) &&
|
||||
assistants &&
|
||||
assistants.disableBuilder !== true &&
|
||||
endpointsConfig?.[EModelEndpoint.assistants] &&
|
||||
endpointsConfig[EModelEndpoint.assistants].disableBuilder !== true &&
|
||||
keyProvided
|
||||
) {
|
||||
links.push({
|
||||
|
|
@ -76,8 +72,7 @@ export default function useSideNavLinks({
|
|||
endpointsConfig?.[EModelEndpoint.agents] &&
|
||||
hasAccessToAgents &&
|
||||
hasAccessToCreateAgents &&
|
||||
agents &&
|
||||
agents.disableBuilder !== true
|
||||
endpointsConfig[EModelEndpoint.agents].disableBuilder !== true
|
||||
) {
|
||||
links.push({
|
||||
title: 'com_sidepanel_agent_builder',
|
||||
|
|
@ -141,13 +136,11 @@ export default function useSideNavLinks({
|
|||
|
||||
return links;
|
||||
}, [
|
||||
endpointsConfig?.[EModelEndpoint.agents],
|
||||
endpointsConfig,
|
||||
interfaceConfig.parameters,
|
||||
keyProvided,
|
||||
assistants,
|
||||
endpointType,
|
||||
endpoint,
|
||||
agents,
|
||||
hasAccessToAgents,
|
||||
hasAccessToPrompts,
|
||||
hasAccessToBookmarks,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue