feat: Add endpoint to new conversation for agent favorites

This commit is contained in:
Marco Beretta
2025-11-23 03:00:14 +01:00
parent 4c10fcd118
commit 8c5b62e5b3

View File

@@ -3,6 +3,7 @@ import * as Menu from '@ariakit/react/menu';
import { useNavigate } from 'react-router-dom';
import { Ellipsis, PinOff } from 'lucide-react';
import { DropdownPopup } from '@librechat/client';
import { EModelEndpoint } from 'librechat-data-provider';
import type { FavoriteModel } from '~/store/favorites';
import type t from 'librechat-data-provider';
import EndpointIcon from '~/components/Endpoints/EndpointIcon';
@@ -31,10 +32,12 @@ export default function FavoriteItem({ item, type }: FavoriteItemProps) {
newConversation({
template: {
...agent,
endpoint: EModelEndpoint.agents,
agent_id: agent.id,
},
preset: {
...agent,
endpoint: EModelEndpoint.agents,
agent_id: agent.id,
},
});