This commit is contained in:
Enrico Ros
2024-08-17 23:13:14 -07:00
parent 79108537d7
commit 1df31946c2
2 changed files with 13 additions and 10 deletions
+3
View File
@@ -57,6 +57,9 @@ export interface DMessageMetadata {
ranOutOfTokens?: true; // if the message was cut off due to token limit
}
/**
* A textual reference to a text snipped, by a certain role.
*/
export interface DMetaReferenceItem {
mrt: 'dmsg'; // for future type discrimination
mText: string;
+10 -10
View File
@@ -33,16 +33,6 @@ export interface DLLM<TLLMOptions = Record<string, any>> {
maxOutputTokens: number | null; // null: must assume it's unknown
trainingDataCutoff?: string; // 'Apr 2029'
interfaces: DModelInterfaceV1[]; // if set, meaning this is the known and comprehensive set of interfaces
// inputTypes: { // future? the supported input formats
// [key in DModelPartKind]?: {
// // maxItemsPerInput?: number;
// // maxFileSize?: number; // in bytes
// // maxDurationPerInput?: number; // in seconds, for audio and video
// // maxPagesPerInput?: number; // for PDF
// // encodings?: ('base64' | 'utf-8')[];
// mimeTypes?: string[];
// }
// };
benchmark?: { cbaElo?: number, cbaMmlu?: number }; // benchmark values
pricing?: DModelPricing;
@@ -86,3 +76,13 @@ export const LLM_IF_OAI_Complete: DModelInterfaceV1 = 'oai-complete';
// | 'if-fast-chat'
// ;
// modelcaps: DModelCapability[];
// inputTypes: { // future? the supported input formats
// [key in DModelPartKind]?: {
// // maxItemsPerInput?: number;
// // maxFileSize?: number; // in bytes
// // maxDurationPerInput?: number; // in seconds, for audio and video
// // maxPagesPerInput?: number; // for PDF
// // encodings?: ('base64' | 'utf-8')[];
// mimeTypes?: string[];
// }
// };