Implement Gemini integration to create elaborate prompts from simple background concepts.#20
Draft
Implement Gemini integration to create elaborate prompts from simple background concepts.#20
Conversation
This commit introduces a new feature that allows users to generate more detailed prompts using the Gemini API. The user can now input a simple concept, and the system will generate a more complete prompt using Gemini. The generated prompt is then displayed in the prompt box, allowing the user to edit it. The changes include: - A new function in that interacts with the Gemini API. - A new function in that calls the new function. - The function in the that calls the method. - The html was modified to add new inputs. Manual testing was performed to ensure the new feature works as expected.
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.
This commit introduces a new feature that allows users to generate more detailed prompts using the Gemini API. The user can now input a simple concept, and the system will generate a more complete prompt using Gemini. The generated prompt is then displayed in the prompt box, allowing the user to edit it.
The changes include:
generateGeminiPromptinsrc/gemini-api.tsthat interacts with the Gemini API.generatePromptinsrc/index.tsthat calls the new function.generatePromptfunction in thesrc/ui/src/app/app.component.tsthat calls thegeneratePromptmethod.