mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 17:50:00 -06:00
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:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user