mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-11 16:22:40 +02:00
Image (#238)
* added image tool * show image in playground * store images in Redis * new images use unique urls * moved from redis to s3 for image urls * removed unnecessary changes * removed the bubble around assistant messages * added a download button on hover on image * increased image size and removed border * revert the bubbes for the assistant messages
This commit is contained in:
parent
af0fcce127
commit
158777b045
7 changed files with 489 additions and 22 deletions
|
|
@ -34,7 +34,22 @@ function loadTemplatesFromFiles(): { [key: string]: z.infer<typeof WorkflowTempl
|
|||
},
|
||||
],
|
||||
prompts: [],
|
||||
tools: [],
|
||||
tools: [
|
||||
{
|
||||
name: "Generate Image",
|
||||
description: "Generate an image using Google Gemini given a text prompt. Returns base64-encoded image data and any text parts.",
|
||||
isGeminiImage: true,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
prompt: { type: 'string', description: 'Text prompt describing the image to generate' },
|
||||
modelName: { type: 'string', description: 'Optional Gemini model override' },
|
||||
},
|
||||
required: ['prompt'],
|
||||
additionalProperties: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
try {
|
||||
|
|
@ -73,4 +88,4 @@ function loadTemplatesFromFiles(): { [key: string]: z.infer<typeof WorkflowTempl
|
|||
export const templates: { [key: string]: z.infer<typeof WorkflowTemplate> } = loadTemplatesFromFiles();
|
||||
|
||||
// Note: Prebuilt cards are now loaded from app/lib/prebuilt-cards/ directory
|
||||
// starting_copilot_prompts has been removed as it was unused
|
||||
// starting_copilot_prompts has been removed as it was unused
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue