@leeoohoo/aichat 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -96,7 +96,6 @@ export declare interface AiClientConfig {
96
96
  baseUrl?: string;
97
97
  model: string;
98
98
  temperature: number;
99
- maxTokens: number;
100
99
  systemPrompt?: string;
101
100
  enableStreaming: boolean;
102
101
  }
@@ -199,7 +198,7 @@ export declare class ApiClient {
199
198
  createdAt?: Date;
200
199
  status?: string;
201
200
  }): Promise<any>;
202
- getMcpConfigs(userId?: string): Promise<unknown>;
201
+ getMcpConfigs(userId?: string): Promise<any>;
203
202
  createMcpConfig(data: {
204
203
  id: string;
205
204
  name: string;
@@ -211,7 +210,7 @@ export declare class ApiClient {
211
210
  enabled: boolean;
212
211
  user_id?: string;
213
212
  app_ids?: string[];
214
- }): Promise<unknown>;
213
+ }): Promise<any>;
215
214
  updateMcpConfig(id: string, data: {
216
215
  id?: string;
217
216
  name?: string;
@@ -223,9 +222,9 @@ export declare class ApiClient {
223
222
  enabled?: boolean;
224
223
  userId?: string;
225
224
  app_ids?: string[];
226
- }): Promise<unknown>;
227
- deleteMcpConfig(id: string): Promise<unknown>;
228
- getAiModelConfigs(userId?: string): Promise<unknown>;
225
+ }): Promise<any>;
226
+ deleteMcpConfig(id: string): Promise<any>;
227
+ getAiModelConfigs(userId?: string): Promise<any>;
229
228
  createAiModelConfig(data: {
230
229
  id: string;
231
230
  name: string;
@@ -235,9 +234,9 @@ export declare class ApiClient {
235
234
  base_url: string;
236
235
  user_id?: string;
237
236
  enabled: boolean;
238
- }): Promise<unknown>;
239
- updateAiModelConfig(id: string, data: any): Promise<unknown>;
240
- deleteAiModelConfig(id: string): Promise<unknown>;
237
+ }): Promise<any>;
238
+ updateAiModelConfig(id: string, data: any): Promise<any>;
239
+ deleteAiModelConfig(id: string): Promise<any>;
241
240
  getSystemContexts(userId: string): Promise<any[]>;
242
241
  getActiveSystemContext(userId: string): Promise<{
243
242
  content: string;
@@ -311,7 +310,6 @@ export declare class ApiClient {
311
310
  model_config: {
312
311
  model_name: any;
313
312
  temperature: number;
314
- max_tokens: number;
315
313
  api_key: any;
316
314
  base_url: any;
317
315
  };
@@ -378,9 +376,11 @@ export declare class ApiClient {
378
376
  message: any;
379
377
  };
380
378
  }>;
381
- streamChat(sessionId: string, content: string, modelConfig: any, userId?: string): Promise<ReadableStream>;
382
- streamAgentChat(sessionId: string, content: string, agentId: string, userId?: string): Promise<ReadableStream>;
379
+ streamChat(sessionId: string, content: string, modelConfig: any, userId?: string, attachments?: any[]): Promise<ReadableStream>;
380
+ streamAgentChat(sessionId: string, content: string, agentId: string, userId?: string, attachments?: any[]): Promise<ReadableStream>;
383
381
  stopChat(sessionId: string): Promise<any>;
382
+ getUserSettings(userId?: string): Promise<any>;
383
+ updateUserSettings(userId: string, settings: Record<string, any>): Promise<any>;
384
384
  }
385
385
 
386
386
  export declare const apiClient: ApiClient;
@@ -418,6 +418,7 @@ export declare const AttachmentRenderer: default_2.FC<AttachmentRendererProps>;
418
418
 
419
419
  declare interface AttachmentRendererProps {
420
420
  attachment: Attachment;
421
+ isUser?: boolean;
421
422
  customRenderer?: (attachment: Attachment) => default_2.ReactNode;
422
423
  className?: string;
423
424
  }
@@ -473,7 +474,6 @@ declare interface ChatActions {
473
474
  export declare interface ChatConfig {
474
475
  model: string;
475
476
  temperature: number;
476
- maxTokens: number;
477
477
  systemPrompt: string;
478
478
  enableMcp: boolean;
479
479
  }
@@ -484,7 +484,6 @@ export declare interface ChatConfig {
484
484
  declare interface ChatConfig_2 {
485
485
  model: string;
486
486
  temperature: number;
487
- maxTokens: number;
488
487
  apiKey: string;
489
488
  baseUrl: string;
490
489
  }
@@ -546,7 +545,6 @@ export declare class ChatService {
546
545
  sendMessage(sessionId: string, content: string, _attachments?: any[], callbacks?: ChatServiceCallbacks, modelConfig?: {
547
546
  model_name: string;
548
547
  temperature: number;
549
- max_tokens: number;
550
548
  api_key: string;
551
549
  base_url: string;
552
550
  }): Promise<void>;
@@ -654,7 +652,6 @@ export declare const conversationsApi: {
654
652
  model_config: {
655
653
  model_name: any;
656
654
  temperature: number;
657
- max_tokens: number;
658
655
  api_key: any;
659
656
  base_url: any;
660
657
  };
@@ -1218,7 +1215,7 @@ export declare const useTheme: () => {
1218
1215
  toggleTheme: () => void;
1219
1216
  };
1220
1217
 
1221
- export declare const version = "1.0.0";
1218
+ export declare const version = "1.0.10";
1222
1219
 
1223
1220
  export declare const XIcon: default_2.FC<{
1224
1221
  className?: string;