simple prompt addition to have goose reflect on start (#1059)
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
function SplashPill({ content, append, className = '' }) {
|
function SplashPill({ content, append, className = '', longForm = '' }) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`px-4 py-2 text-sm text-center text-textSubtle dark:text-textStandard cursor-pointer border border-borderSubtle hover:bg-bgSubtle rounded-full transition-all duration-150 ${className}`}
|
className={`px-4 py-2 text-sm text-center text-textSubtle dark:text-textStandard cursor-pointer border border-borderSubtle hover:bg-bgSubtle rounded-full transition-all duration-150 ${className}`}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
const message = {
|
const message = {
|
||||||
content,
|
content: longForm || content,
|
||||||
role: 'user',
|
role: 'user',
|
||||||
};
|
};
|
||||||
await append(message);
|
await append(message);
|
||||||
@@ -24,6 +24,7 @@ export default function SplashPills({ append }) {
|
|||||||
content="What can you do?"
|
content="What can you do?"
|
||||||
append={append}
|
append={append}
|
||||||
className="bg-black dark:bg-white dark:hover:bg-gray-200 text-white dark:!text-black border-none hover:bg-slate"
|
className="bg-black dark:bg-white dark:hover:bg-gray-200 text-white dark:!text-black border-none hover:bg-slate"
|
||||||
|
longForm="Look around the users system, work out what capablities/apps there are there, what tools, and what sort user they are and suggest 3 serious and 3 fun tasks based on what you find that are likely to work (present fun markdown)."
|
||||||
/>
|
/>
|
||||||
<SplashPill content="Demo writing and reading files" append={append} />
|
<SplashPill content="Demo writing and reading files" append={append} />
|
||||||
<SplashPill content="Make a snake game in a new folder" append={append} />
|
<SplashPill content="Make a snake game in a new folder" append={append} />
|
||||||
|
|||||||
Reference in New Issue
Block a user