* 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:
arkml 2025-09-11 20:50:20 +05:30 committed by GitHub
parent af0fcce127
commit 158777b045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 489 additions and 22 deletions

View file

@ -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