I'm GitGeminiHub - inspired and empowered by Gemini and GitHub Actions
English »
中文 »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This is GitGeminiHub built by GitHub Action and Google Gemini API to response automatically by submitting Issues.
It is a learning, open-source project. If any complains, please contact me. If you are interested in this project,it would be honored to receive yours Star and Fork
- GitHub Action: Automate your workflow from idea to production
- Google Gemini: Welcome to the Gemini era
Follow the steps learn how to submit a task by open issue
For developers or contributors who folk as a personal project:
- Fork repository as your owners
- Get a Gemini API key
- Add the Gemini API key in project setting
- Settting -> Security/Secrets and variables/Actions -> Secrets/Repository secrets
For users:
- You need a GitHub account and should better know how to use GitHub, like create an issue.
- Open Issue to create a New issue ticket
- Choose an issue template to submit a request
- Submit the issue ticket
- Open Issue to create a New issue ticket
- Choose any task request to start submitting a task issue
- Fill the prompt you want task to execute in ### Prompt section
- Fill the content (upload/drop files or images or their links if needed) in ### Content section
- Submit the new issue
- Wait the task finished.
- Check the new comment added by action bot. If task failed, please check the issue description, edit or reopen or re-create can re-trigger the translation task automatically.
When you try to submit the ticket, you will see the pate like below:
- Please just fill the below task information as follows and DO NOT remove any text > of this Description template
- Fill your prompt in the ### Prompt section between line marks
---
- Fill additional image or text files in the ### Content section between line marks
---
- If the task fails, please check the Safety settings and adjust the settings in the json data in ### Setting section
See Introduction for details.
Please recognize the text in the picture and convert to markdown
![image](https://github.com/xwnb/GitGeminiHub/assets/45145954/> 1f2f1cdb-c30d-4a3e-b01c-0e80e30f51d2)
balabalabalabalabalabalabalabalabalabalabalabalabalabalabalabalabala
Here is the generation configuration and safety setting about Gemini, you can modify them according to your needs. Safety settings
{ "model_name": "gemini-pro-vision", "generation_configuration": { "temperature": 0.9, "top_p": 1.0, "top_k": 1, "max_output_tokens": 2048 }, "safety_setting": { "harassment": "BLOCK_MEDIUM_AND_ABOVE", "hate_speech": "BLOCK_MEDIUM_AND_ABOVE", "sexually_explicit": "BLOCK_MEDIUM_AND_ABOVE", "dangerous_content": "BLOCK_MEDIUM_AND_ABOVE" } }
- Task - Ask: Recommand ask Gemini for anything you want, like google or bing anything - writing, ask question, translate or solve math problems.
- Task - Ask with images: it can read images and do something as your description - image apprehension, text extraction and others.
- Examples:
- What's in the picture?
- Write a short, engaging blog post based on this picture. It should include a description of the meal in the photo and talk about my journey meal prepping.
- Please recognize the text in the picture and convert to markdown
- Describe what's in each image in detail and summary the common between these
- Examples:
- Task - Ask with file: It can read a file if you attach, and post the result one to you based on your prompt.
- Examples:
- Please summary the text: ..balabala.. .
- Please polish the text: ..balabala.. .
- Please translate the text: ..balabala.. .
- Examples:
- More task templatesa are in support ... If you have more expected features, please choose Feature requst ticket to ask for new features.
Here are some examples you may be interested in. If you have awesome tasks/examples by this project, please submit a pull request or @xwnb. I'll list them below.
- Example: Add contextual information
- Example: Summarize this text
- Example: Translate the attached to Chinese
- Example: Parse the formula
- Example: Describe what's in each image in detail and summary the common between these?
- Example: Parse the table in this image into markdown format
- Example: Create an outline for an essay about hummingbirds
- Example: Recognize the text in the picture and convert to markdown
- Example: Please recognize the text in the picture and translate to Chinese
- Example: Translate pdf to Chinese [NEW 2024/6/8]
- Build with GitHub Action and Gemini API triggered by Issue event
- Support *.txt, *.md files for translation
- Support image file for prompting
- Post response by Issue comment.
- Add configuration section for Gemini setting in Issue template
- Support other plain text formats
- Support
*.pdf
phrase [NEW 2024/6/8] - Support OCR for images, scanned-documents
- Notify task result to users by email
- ...
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Project Link: https://github.com/xwnb/GitGeminiHub