Skip to content

Commit

Permalink
Update DALLE API
Browse files Browse the repository at this point in the history
  • Loading branch information
xihajun authored May 22, 2023
1 parent 0bebdc5 commit 9742cc1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/DALLE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
issue_comment:
types: [created]
jobs:
OpenAI_Reply:
if: "contains(github.event.issue.labels.*.name, 'image')"
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: install python packages
run: |
python -m pip install --upgrade pip
pip install openai
- name: run script
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OUTPUTFILE: ".github/comment-template.md"
BODY: ${{ github.event.comment.body }}
run: |
mkdir -p .github && wget https://raw.githubusercontent.com/xihajun/image/main/img/dalle.py && python dalle.py "$BODY"
- name: Create comment
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.issue.number }}
body-file: '.github/comment-template.md'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# IssueGPT
IssueGPT is an AI GitHub Assistant which embedded GPT-4 (GPT3.5) into GitHub issues (depends on your API).

![ezgif com-crop](https://github.com/xihajun/issueGPT/assets/25631641/a22cfe25-aac4-45ac-87d6-29c1373c74c0)


## How to use it?
- [Use this template](https://github.com/xihajun/issueGPT/generate)
- Get an OpenAI [API Key](https://platform.openai.com/account/api-keys)
Expand Down

0 comments on commit 9742cc1

Please sign in to comment.