Enhance image and embedding provider support

- Added new image models for GPT 5.2, 5.3, and 5.4, including capabilities for text-to-image and editing.
- Updated embedding handling to include optional dimensions in requests.
- Introduced support for custom embedding providers, allowing dynamic fetching and validation of custom nodes.
- Improved image generation handling with Codex integration, including progress tracking and error handling.
- Enhanced UI components to support adding custom embeddings and displaying their status.
This commit is contained in:
decolua committed 2026-04-25 16:22:30 +07:00
1 parent cca615eaff
commit 0b8bed5793
19 files changed
+1039 -130

No files matched your search

@@ -108,7 +108,7 @@ AddCustomModelModal.propTypes = {
// ── ModelsCard ─────────────────────────────────────────────────
// Self-contained card: shows models for a provider, filtered by optional `kindFilter`.
// kindFilter: if provided, only shows models with matching type/kinds field.
export default function ModelsCard({ providerId, kindFilter }) {
export default function ModelsCard({ providerId, kindFilter, providerAliasOverride }) {
const { copied, copy } = useCopyToClipboard();
const [modelAliases, setModelAliases] = useState({});
const [customModels, setCustomModels] = useState([]);
@@ -118,7 +118,7 @@ export default function ModelsCard({ providerId, kindFilter }) {
const [showAddCustomModel, setShowAddCustomModel] = useState(false);
const [connections, setConnections] = useState([]);
const providerAlias = getProviderAlias(providerId);
const providerAlias = providerAliasOverride || getProviderAlias(providerId);
const effectiveType = kindFilter || "llm";
const fetchData = useCallback(async () => {
@@ -284,4 +284,5 @@ export default function ModelsCard({ providerId, kindFilter }) {
ModelsCard.propTypes = {
providerId: PropTypes.string.isRequired,
kindFilter: PropTypes.string, // e.g. "tts", "embedding" — filters models shown
providerAliasOverride: PropTypes.string, // override alias (e.g. for custom-embedding nodes using prefix)
};