u
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user