feat: add sheet block (#743)
Co-authored-by: Nicolas <nicolascamara29@gmail.com>
This commit is contained in:
parent
93b02a85e1
commit
76804269c4
14 changed files with 419 additions and 6 deletions
|
|
@ -64,6 +64,10 @@ print(f"Factorial of 5 is: {factorial(5)}")
|
|||
\`\`\`
|
||||
`;
|
||||
|
||||
export const sheetPrompt = `
|
||||
You are a spreadsheet creation assistant. Create a spreadsheet in csv format based on the given prompt. The spreadsheet should contain meaningful column headers and data.
|
||||
`;
|
||||
|
||||
export const updateDocumentPrompt = (
|
||||
currentContent: string | null,
|
||||
type: BlockKind,
|
||||
|
|
@ -80,4 +84,10 @@ Improve the following code snippet based on the given prompt.
|
|||
|
||||
${currentContent}
|
||||
`
|
||||
: '';
|
||||
: type === 'sheet'
|
||||
? `\
|
||||
Improve the following spreadsheet based on the given prompt.
|
||||
|
||||
${currentContent}
|
||||
`
|
||||
: '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue