mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00

* 🔧 refactor: Remove modelSpecs prop from ModelSelector and related components
* fix: Update submission.conversationId references in SSE hooks and data types as was incorrectly typed
* feat: Allow showing specific endpoints alongside model specs via `addedEndpoints` field
* feat: allowed agents providers via `agents.allowedProviders` field
* fix: bump dicebear/sharp dependencies to resolve CVE-2024-12905 and improve avatar gen logic
* fix: rename variable for clarity in loadDefaultInterface function
* fix: add keepAddedConvos option to newConversation calls for modular chat support
* fix: include model information in endpoint selection for improved context
* fix: update data-provider version to 0.7.78 and increment config version to 1.2.4
23 lines
600 B
TypeScript
23 lines
600 B
TypeScript
import React from 'react';
|
|
import { TModelSpec, TStartupConfig } from 'librechat-data-provider';
|
|
|
|
export interface Endpoint {
|
|
value: string;
|
|
label: string;
|
|
hasModels: boolean;
|
|
models?: Array<{ name: string; isGlobal?: boolean }>;
|
|
icon: React.ReactNode;
|
|
agentNames?: Record<string, string>;
|
|
assistantNames?: Record<string, string>;
|
|
modelIcons?: Record<string, string | undefined>;
|
|
}
|
|
|
|
export interface SelectedValues {
|
|
endpoint: string | null;
|
|
model: string | null;
|
|
modelSpec: string | null;
|
|
}
|
|
|
|
export interface ModelSelectorProps {
|
|
startupConfig: TStartupConfig | undefined;
|
|
}
|