This commit is contained in:
seb
2026-10-11 12:58:15 +02:00
parent 8262e35e53
commit 1149ffddcb
24 changed files with 575 additions and 261 deletions

View File

@@ -7,6 +7,7 @@ import env from '../config/env.js';
import { getImageByHash } from '../db/pic.js';
import { prepareVfs, syncVfsToDb, extractFullHash, isReadOnlyDatabasePath } from './vfs.js';
import { resolveOpenRouterKey, resolveImageModel } from './llm-key.js';
import { TOOL_DESCRIPTIONS } from './prompts.js';
/**
* edit-image — generate or edit images using the modelslugimage company setting.
@@ -251,10 +252,7 @@ async function processAttachmentToDataUrl(rawBuffer, high) {
export function createEditImageTool({ googleAuthId, model: fallbackModel }) {
return defineTool({
name: 'edit_image',
description:
'Generate or edit images using the configured company image model (modelslugimage). ' +
'Supports reference image attachments fed in low or high quality, output size tier, ' +
'aspect ratio, and saving directly to a specified VFS output path (always saved as AVIF).',
description: TOOL_DESCRIPTIONS.edit_image,
strict: false,
parameters: {
type: 'object',