mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-20 17:26:12 +01:00
25 lines
587 B
TypeScript
25 lines
587 B
TypeScript
|
|
import React from 'react';
|
||
|
|
import { TModelSpec, TInterfaceConfig } from 'librechat-data-provider';
|
||
|
|
|
||
|
|
export interface Endpoint {
|
||
|
|
value: string;
|
||
|
|
label: string;
|
||
|
|
hasModels: boolean;
|
||
|
|
models?: string[];
|
||
|
|
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 {
|
||
|
|
interfaceConfig: TInterfaceConfig;
|
||
|
|
modelSpecs: TModelSpec[];
|
||
|
|
}
|