Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Anil-matcha/Open-Generative-AI
/ getModelById
Function
getModelById
packages/studio/src/models.js:2183–2183 ·
view source on GitHub ↗
(id)
Source
from the content-addressed store, hash-verified
2181
];
2182
2183
export
const
getModelById = (id) => t2iModels.find(m => m.id === id);
2184
2185
export
const
getAspectRatiosForModel = (modelId) => {
2186
const
model = getModelById(modelId);
Callers
5
generateImage
Function · 0.90
generateImage
Method · 0.90
getAspectRatiosForModel
Function · 0.70
getQualityFieldForModel
Function · 0.70
getResolutionsForModel
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected