Working main 2025 11 29 (#2068)

* add logging hook to togetherai image service

* add gemini-3-pro-image to costmap
This commit is contained in:
Neal Shah
2025-11-30 11:39:34 -05:00
committed by GitHub
parent cea94d16cb
commit 596f77d888
2 changed files with 4 additions and 0 deletions

View File

@@ -99,6 +99,9 @@ class TogetherImageGenerationService extends BaseService {
response_format,
} = params;
const svc_event = this.services.get('event');
svc_event.emit('ai.log.image', { actor: Context.get('actor'), parameters: params, completionId: '0', intended_service: params.model });
if ( test_mode ) {
return new TypedValue({
$: 'string:url:web',

View File

@@ -28,6 +28,7 @@ export const TOGETHER_COST_MAP = {
'together-image:black-forest-labs/FLUX.1-schnell-Free': 0,
'together-image:black-forest-labs/FLUX.1.1-pro': 0.05 * 100_000_000,
'together-image:google/flash-image-2.5': 0.039 * 100_000_000,
'together-image:google/gemini-3-pro-image': 0.134 * 100_000_000,
'together-image:google/imagen-4.0-fast': 0.02 * 100_000_000,
'together-image:google/imagen-4.0-preview': 0.04 * 100_000_000,
'together-image:google/imagen-4.0-ultra': 0.06 * 100_000_000,