randmarcomps 1.657.0 → 1.659.0

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.
@@ -1,6 +1,8 @@
1
- import { RandmarAssistantV2Content } from 'randmar-api-client';
1
+ import { ContentSubset } from 'randmar-api-client';
2
+ import { RandmarApiConfig } from '../api-config-context';
2
3
  interface UseAIAssistantProps {
3
4
  userId: string;
5
+ apiConfig?: Partial<RandmarApiConfig>;
4
6
  onGeneratedImageUploaded?: (payload: {
5
7
  assistantMessageId: string;
6
8
  urls: string[];
@@ -16,7 +18,7 @@ interface Message {
16
18
  }[];
17
19
  isComponent?: boolean;
18
20
  }
19
- export declare function useAIAssistant({ userId, onGeneratedImageUploaded }: UseAIAssistantProps): {
21
+ export declare function useAIAssistant({ userId, apiConfig, onGeneratedImageUploaded }: UseAIAssistantProps): {
20
22
  handleSubmitToBot: (input: string, attachedFiles?: File[], uiMessageId?: string) => void;
21
23
  botMessages: Message[];
22
24
  clearBotMessages: () => void;
@@ -27,6 +29,6 @@ export declare function useAIAssistant({ userId, onGeneratedImageUploaded }: Use
27
29
  stop: () => void;
28
30
  editAndResubmit: (uiMessageId: string, editedText: string) => Promise<void>;
29
31
  contextUsage: number;
30
- chatHistory: RandmarAssistantV2Content[];
32
+ chatHistory: ContentSubset[];
31
33
  };
32
34
  export {};