Skip to content

Commit

Permalink
api req updated
Browse files Browse the repository at this point in the history
  • Loading branch information
JHM69 committed Jul 13, 2023
1 parent 37f2cb4 commit 74afd08
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ function RenderCode(props: { codeBlock: CodeBlock; sx?: SxProps }) {
</IconButton>
</Tooltip>
)}
{hasCodepenLanguage && <OpenInCodepen codeBlock={{ code: props.codeBlock.code, language: props.codeBlock.language || undefined }} />}
{hasReplitLanguage && <OpenInReplit codeBlock={{ code: props.codeBlock.code, language: props.codeBlock.language || undefined }} />}
{/* {hasCodepenLanguage && <OpenInCodepen codeBlock={{ code: props.codeBlock.code, language: props.codeBlock.language || undefined }} />}
{hasReplitLanguage && <OpenInReplit codeBlock={{ code: props.codeBlock.code, language: props.codeBlock.language || undefined }} />} */}
<Tooltip title="Copy Code" variant="solid">
<IconButton variant="outlined" color="neutral" onClick={handleCopyToClipboard}>
<ContentCopyIcon />
Expand Down
20 changes: 14 additions & 6 deletions lib/data.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type SystemPurposeId = 'Catalyst' | 'Custom' | 'Designer' | 'Developer' | 'Executive' | 'Generic' | 'Scientist';
export type SystemPurposeId = 'Story' | 'Normal' | 'Tour';

export const defaultSystemPurposeId: SystemPurposeId = 'Generic';
export const defaultSystemPurposeId: SystemPurposeId = 'Normal';

type SystemPurposeData = {
title: string;
Expand All @@ -11,7 +11,7 @@ type SystemPurposeData = {
};

export const SystemPurposes: { [key in SystemPurposeId]: SystemPurposeData } = {
Developer: {
Normal: {
title: 'GPT',
description: 'Normal Chat GPT Funtionality',
systemMessage: 'Your sophisticated, accurate, and smart AI assistant',
Expand All @@ -23,13 +23,21 @@ export const SystemPurposes: { [key in SystemPurposeId]: SystemPurposeData } = {
],
},

Catalyst: {
Story: {
title: 'Story Generator',
description: 'You can generate kids story using this',
systemMessage: '',
description: '',
systemMessage:
'write a story about the message and develop a html page which will contain the story. the story will have different sections. each section will contain a image. each section where image will be added as alt od img tag. make nice formatting using tailwind css. You will send only the html code. Story will no longer be 1000 word.',
symbol: '🖊️',
examples: ['Write a story about a boy playing cricket'],
},
Tour: {
title: 'Tour',
description: '',
systemMessage: '',
symbol: '⛱',
examples: ['Write a blog about my last tour of Coxs Bazar'],
},
};

export type ChatModelId = 'gpt-4' | 'gpt-3.5-turbo';
Expand Down

0 comments on commit 74afd08

Please sign in to comment.