Skip to content

Commit 2dfd71d

Browse files
committed
2 parents 057c206 + cc29e40 commit 2dfd71d

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

model_providers/gemini.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,8 @@ export class GeminiProvider extends BaseModelProvider {
12651265
'1024x1024': { ar: '1:1', px: '1024x1024' },
12661266
'1536x1024': { ar: '3:2', px: '1536x1024' },
12671267
'1024x1536': { ar: '2:3', px: '1024x1536' },
1268+
'1696x2528': { ar: '2:3', px: '1696x2528' },
1269+
'2048x2048': { ar: '1:1', px: '2048x2048' },
12681270
'1792x1024': { ar: '16:9', px: '1792x1024' },
12691271
'1024x1792': { ar: '9:16', px: '1024x1792' },
12701272
};

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@just-every/ensemble",
3-
"version": "0.2.175",
3+
"version": "0.2.177",
44
"description": "LLM provider abstraction layer with unified streaming interface",
55
"type": "module",
66
"main": "./dist/cjs/index.cjs",

types/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,8 @@ export interface ImageGenerationOpts {
807807
| '1024x1536'
808808
| '1792x1024'
809809
| '1024x1792'
810+
| '1696x2528'
811+
| '2048x2048'
810812
| '512x512'
811813
| '256x256';
812814

utils/image_utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export const OPENAI_MAX_WIDTH = 1024;
3232
export const OPENAI_MAX_HEIGHT = 768;
3333
export const CLAUDE_MAX_WIDTH = 1024;
3434
export const CLAUDE_MAX_HEIGHT = 1120;
35-
export const GEMINI_MAX_WIDTH = 1024;
36-
export const GEMINI_MAX_HEIGHT = 1536;
35+
export const GEMINI_MAX_WIDTH = 2048;
36+
export const GEMINI_MAX_HEIGHT = 2528;
3737

3838
import { ExtractBase64ImageResult } from '../types/types.js';
3939
import { convertImageToTextIfNeeded } from './image_to_text.js';

0 commit comments

Comments
 (0)