[PR #117] [MERGED] feat: Add NanoGPT support and improve image connection handling #4471

Closed
opened 2026-10-22 04:07:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/117
Author: @coxde
Created: 4/19/2026
Status: ✅ Merged
Merged: 4/19/2026
Merged by: @coxde

Base: main ← Head: feat/nanogpt


📝 Commits (6)

  • fa46c8d feat(connections): add NanoGPT provider support
  • 0c10567 feat(client): Move image service picker to its own field group
  • 060a3cf feat(server): add NanoGPT image generation provider support
  • 7331b34 feat(illustrator): Support default image connection fallback
  • f02e10a fix(agents): support separate default image connection
  • 03ec59e fix(client): Use imageConnections for connection options in AgentEditor

📊 Changes

13 files changed (+227 additions, -102 deletions)

View changed files

📝 packages/client/src/components/agents/AgentEditor.tsx (+32 -35)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+80 -57)
📝 packages/server/src/db/schema/connections.ts (+1 -1)
📝 packages/server/src/routes/connections.routes.ts (+37 -2)
📝 packages/server/src/routes/generate.routes.ts (+9 -2)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+8 -1)
📝 packages/server/src/services/image/image-generation.ts (+1 -0)
📝 packages/server/src/services/llm/provider-registry.ts (+1 -0)
📝 packages/server/src/services/storage/connections.storage.ts (+38 -4)
📝 packages/shared/src/constants/model-lists.ts (+9 -0)
📝 packages/shared/src/constants/providers.ts (+9 -0)
📝 packages/shared/src/schemas/connection.schema.ts (+1 -0)
📝 packages/shared/src/types/connection.ts (+1 -0)

📄 Description

This pull request introduces several improvements and new features related to agent and connection management, with a particular focus on enhancing support for image generation providers (notably NanoGPT), improving default connection handling, and refining the user interface for both agents and connections.

Image Generation and Provider Support Enhancements:

  • Added support for the NanoGPT provider throughout the system, including the backend schema (connections.ts), API key links, and special-case model fetching logic for NanoGPT image generation endpoints. [1] [2] [3]
  • Improved backend error handling for image generation providers: if a provider returns HTML instead of JSON, a clear error message is shown, and response parsing is more robust. [1] [2]

Default Connection Handling and UI Improvements:

  • Refactored how default connections are determined and displayed for both LLM and image generation providers in AgentEditor.tsx, ensuring that default connections are clearly labeled and used appropriately. [1] [2] [3]
  • Updated the UI to allow users to explicitly override or clear image generation connections for agents, with improved help text and clearer labeling (e.g., "Image Generation Connection Override" and guidance on using the default from settings). [1] [2]

User Experience Enhancements:

  • In the ConnectionEditor, the model dropdown now automatically focuses and selects the input when remote models are fetched, streamlining the workflow. [1] [2] [3]
  • The image generation service picker is now visually separated from the model selection, with improved descriptions and clearer UI structure. [1] [2]

Default Assignment and Labeling Improvements:

  • The "Default for Agents" toggle now adapts its label and help text depending on whether the connection is for image generation or LLMs, and provides additional guidance for image generation defaults. [1] [2] [3]

Code Simplification and Consistency:

  • Simplified initial value logic for image connection IDs in AgentEditor.tsx, removing redundant logic and ensuring consistency when creating or editing agents. [1] [2] [3] [4]

These changes collectively improve the flexibility and clarity of agent and connection configuration, especially for image generation workflows and new providers like NanoGPT.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/117 **Author:** [@coxde](https://github.com/coxde) **Created:** 4/19/2026 **Status:** ✅ Merged **Merged:** 4/19/2026 **Merged by:** [@coxde](https://github.com/coxde) **Base:** `main` ← **Head:** `feat/nanogpt` --- ### 📝 Commits (6) - [`fa46c8d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fa46c8daf0ed21d200cae2207ac25ea6b2b49ec0) feat(connections): add NanoGPT provider support - [`0c10567`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0c10567e28417458011457e5a0d259112ff3371d) feat(client): Move image service picker to its own field group - [`060a3cf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/060a3cf8025115741d82e4f80a33365066ffc7a7) feat(server): add NanoGPT image generation provider support - [`7331b34`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7331b34cd38574ffae9e8649d4ddc51e903fc61f) feat(illustrator): Support default image connection fallback - [`f02e10a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f02e10a614ab226264790bf4361a4f10fe0e612a) fix(agents): support separate default image connection - [`03ec59e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03ec59ec47d6dd7e64018b1b8a86f76247e30464) fix(client): Use imageConnections for connection options in AgentEditor ### 📊 Changes **13 files changed** (+227 additions, -102 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+32 -35) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+80 -57) 📝 `packages/server/src/db/schema/connections.ts` (+1 -1) 📝 `packages/server/src/routes/connections.routes.ts` (+37 -2) 📝 `packages/server/src/routes/generate.routes.ts` (+9 -2) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+8 -1) 📝 `packages/server/src/services/image/image-generation.ts` (+1 -0) 📝 `packages/server/src/services/llm/provider-registry.ts` (+1 -0) 📝 `packages/server/src/services/storage/connections.storage.ts` (+38 -4) 📝 `packages/shared/src/constants/model-lists.ts` (+9 -0) 📝 `packages/shared/src/constants/providers.ts` (+9 -0) 📝 `packages/shared/src/schemas/connection.schema.ts` (+1 -0) 📝 `packages/shared/src/types/connection.ts` (+1 -0) </details> ### 📄 Description This pull request introduces several improvements and new features related to agent and connection management, with a particular focus on enhancing support for image generation providers (notably NanoGPT), improving default connection handling, and refining the user interface for both agents and connections. **Image Generation and Provider Support Enhancements:** * Added support for the NanoGPT provider throughout the system, including the backend schema (`connections.ts`), API key links, and special-case model fetching logic for NanoGPT image generation endpoints. [[1]](diffhunk://#diff-cad39732afede91ac2b5a36581332ed39009e348e4e194ddbe76cae738ddaea4L10-R10) [[2]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594R50) [[3]](diffhunk://#diff-4819b3c802c756c8ee184e10bbfb5ebeaaed0fccb3e8215a456e0d83e205fb30R191-R211) * Improved backend error handling for image generation providers: if a provider returns HTML instead of JSON, a clear error message is shown, and response parsing is more robust. [[1]](diffhunk://#diff-4819b3c802c756c8ee184e10bbfb5ebeaaed0fccb3e8215a456e0d83e205fb30R157-R162) [[2]](diffhunk://#diff-4819b3c802c756c8ee184e10bbfb5ebeaaed0fccb3e8215a456e0d83e205fb30L194-R233) **Default Connection Handling and UI Improvements:** * Refactored how default connections are determined and displayed for both LLM and image generation providers in `AgentEditor.tsx`, ensuring that default connections are clearly labeled and used appropriately. [[1]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9R250-R265) [[2]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9L545-R546) [[3]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9L581-R587) * Updated the UI to allow users to explicitly override or clear image generation connections for agents, with improved help text and clearer labeling (e.g., "Image Generation Connection Override" and guidance on using the default from settings). [[1]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9L569-R563) [[2]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9L581-R587) **User Experience Enhancements:** * In the `ConnectionEditor`, the model dropdown now automatically focuses and selects the input when remote models are fetched, streamlining the workflow. [[1]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594R106) [[2]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594R323-R327) [[3]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594R683) * The image generation service picker is now visually separated from the model selection, with improved descriptions and clearer UI structure. [[1]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594L621-L632) [[2]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594R657-R670) **Default Assignment and Labeling Improvements:** * The "Default for Agents" toggle now adapts its label and help text depending on whether the connection is for image generation or LLMs, and provides additional guidance for image generation defaults. [[1]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594R346) [[2]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594L976-R995) [[3]](diffhunk://#diff-44d638c260e4eb1dc4b31b561d2a1de279ee7f4f84250a69fd8e7fd6d64a9594L996-R1022) **Code Simplification and Consistency:** * Simplified initial value logic for image connection IDs in `AgentEditor.tsx`, removing redundant logic and ensuring consistency when creating or editing agents. [[1]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9L154-R154) [[2]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9L179-R169) [[3]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9L200-R186) [[4]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9L644-R641) These changes collectively improve the flexibility and clarity of agent and connection configuration, especially for image generation workflows and new providers like NanoGPT. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:55 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4471
No description provided.