Skip to content

Commit

Permalink
make props optional on the AiAssistantProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoudz committed Apr 21, 2024
1 parent 0cc9846 commit 989e17a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/AiAssistantProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import AiAssistantContext, { AiAssistantContextType } from './AiAssistantContext
interface AiAssistantProviderProps {
children: ReactNode;
apiKey: string;
apiUrl: string;
apiUrl?: string;
userId?: string;
scrapeContent: boolean;
debug: boolean;
scrapeContent?: boolean;
debug?: boolean;
}

export const AiAssistantProvider: React.FC<AiAssistantProviderProps> = ({
Expand All @@ -17,7 +17,7 @@ export const AiAssistantProvider: React.FC<AiAssistantProviderProps> = ({
apiUrl,
userId,
scrapeContent,
debug,
debug
}) => {
const [aiAssistant, setAiAssistant] = useState<AiAssistantEngine | undefined>();

Expand All @@ -42,4 +42,4 @@ export const AiAssistantProvider: React.FC<AiAssistantProviderProps> = ({
);
};

export default AiAssistantProvider;
export default AiAssistantProvider;
2 changes: 1 addition & 1 deletion src/core/AiAssistantEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AiAssistantEngine extends EventEmitter {
Logger.setDebugMode(debugMode);
this.sdkVersion = pkg.version;
Logger.log(
`--[SISTA]-- Initializing AiAssistantEngine Version: ${this.sdkVersion} + TS 5`,
`--[SISTA]-- Initializing AiAssistantEngine Version: ${this.sdkVersion}`,
);
this.scrapeContent = scrapeContent;
this.apiKey = apiKey;
Expand Down

0 comments on commit 989e17a

Please sign in to comment.