feat: rebuild xiteng.site homelab platform

This commit is contained in:
2026-08-12 09:48:25 +08:00
parent 557b0eca33
commit 5b84988789
128 changed files with 14979 additions and 292 deletions
+31
View File
@@ -0,0 +1,31 @@
import type {GenerationSettings} from "./generation-settings";
export type ResponseMetadata = {
providerId: string;
model: string;
durationMs: number;
outputTokens: number | null;
tokensPerSecond: number | null;
};
export type StoredChatMessage = {
id: string;
role: "system" | "user" | "assistant";
parts: Array<Record<string, unknown> & {type: string}>;
metadata?: {custom?: {response?: ResponseMetadata}};
};
export type ConversationSummary = {
id: string;
title: string;
providerId: string;
model: string;
messageCount: number;
createdAt: string;
updatedAt: string;
};
export type Conversation = ConversationSummary & {
generationSettings: GenerationSettings;
messages: StoredChatMessage[];
};