Przeglądaj źródła

add system_prompt

visuddhinanda 1 rok temu
rodzic
commit
ce4b9d4849
1 zmienionych plików z 21 dodań i 0 usunięć
  1. 21 0
      dashboard-v4/dashboard/src/components/api/ai.ts

+ 21 - 0
dashboard-v4/dashboard/src/components/api/ai.ts

@@ -57,6 +57,7 @@ export interface IAiModel {
 export interface IAiModelRequest {
   name: string;
   description?: string | null;
+  system_prompt?: string | null;
   url?: string | null;
   model?: string;
   key?: string;
@@ -75,3 +76,23 @@ export interface IAiModelResponse {
   message: string;
   data: IAiModel;
 }
+
+export interface IAiModelLogData {
+  id: string;
+  uid: string;
+  model_id: string;
+  request_url: string;
+  request_data: string;
+  response_data?: string | null;
+  status: number;
+  success: boolean;
+  request_at: string;
+  created_at: string;
+  updated_at: string;
+}
+
+export interface IAiModelLogListResponse {
+  ok: boolean;
+  message: string;
+  data: { rows: IAiModelLogData[]; total: number };
+}