feat(prefab): optional PhotoBuilder (e.g. Gemini) provider and API key#100
Merged
manuelkiessling merged 1 commit intomainfrom Feb 17, 2026
Merged
Conversation
- prefabs.yaml: optional photo_builder_llm_model_provider and photo_builder_llm_api_key - PrefabDto: add nullable photoBuilderLlmModelProvider, photoBuilderLlmApiKey - PrefabLoader: parse and validate (both set or both omitted; provider must support PhotoBuilder) - ProjectMgmtFacade: pass prefab PhotoBuilder settings into createProjectFromPrefab - PrefabLoaderTest: dedicated PhotoBuilder keys, skip when only one set, skip invalid provider - docs: prefabs.yaml.example Gemini example; llm-usage-book prefab PhotoBuilder note
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allows prefab entries in
prefabs.yamlto optionally set dedicated PhotoBuilder provider and API key (e.g. Google Gemini for image generation), so that projects created from that prefab use them instead of the content-editing LLM settings.Changes
photo_builder_llm_model_providerandphoto_builder_llm_api_key; add commented example for Gemini.photoBuilderLlmModelProviderandphotoBuilderLlmApiKey(both null when omitted).ProjectService::create()when set (no longer always null).docs/llm-usage-book.md— one sentence that prefabs can optionally set dedicated PhotoBuilder inprefabs.yaml.Behaviour
photo_builder_llm_model_provider: "google",photo_builder_llm_api_key: "..."): the created project gets dedicated PhotoBuilder (Gemini image + prompt models) with that key. Existingkeys_visibleapplies to this key as well.Quality and tests (PHP + frontend) run successfully.