Skip to content

Implement Gemini integration to create elaborate prompts from simple background concepts.#20

Draft
eqadir wants to merge 1 commit intomainfrom
gemini-integration
Draft

Implement Gemini integration to create elaborate prompts from simple background concepts.#20
eqadir wants to merge 1 commit intomainfrom
gemini-integration

Conversation

@eqadir
Copy link

@eqadir eqadir commented Mar 6, 2025

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 generateGeminiPrompt in src/gemini-api.ts that interacts with the Gemini API.
  • A new function generatePrompt in src/index.ts that calls the new function.
  • The generatePrompt function in the src/ui/src/app/app.component.ts that calls the generatePrompt method.
  • The html was modified to add new inputs.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant