GPT code generator refer to GitHub repository
Project description
gpt-code-generator
summery
GPT code generator refer to GitHub repository
for user
Environment Variables
use GitHub Actions
name: Save precondition indexes from GitHub repositry for generate code
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # every day at midnight
permissions:
actions: read
contents: read
id-token: write
checks: write
pull-requests: write
jobs:
save:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Auto GPT Review With Preconditions
uses: wakuwaku3/gpt-code-generator@v0.0.0
with:
AZURE_OPEN_AI_KEY: "${{ secrets.AZURE_OPEN_AI_KEY }}"
AZURE_OPEN_AI_ENDPOINT: "${{ secrets.AZURE_OPEN_AI_ENDPOINT }}"
AZURE_OPEN_AI_VERSION: "2023-05-15"
AZURE_OPEN_AI_MODEL_NAME: "gpt-35-turbo"
AZURE_OPEN_AI_MODEL_DEPLOY_NAME: "gpt-35-turbo"
AZURE_OPEN_AI_EMBEDDING_MODEL_NAME: "text-embedding-ada-002"
AZURE_OPEN_AI_EMBEDDING_MODEL_DEPLOY_NAME: "text-embedding-ada-002"
GOOGLE_APPLICATION_CREDENTIALS_JSON: "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}"
GOOGLE_INDEX_BUCKET_NAME: "${{ secrets.GOOGLE_INDEX_BUCKET_NAME }}"
GITHUB_OWNER: wakuwaku3 # optional, default: ${GITHUB_REPOSITORY_OWNER}
GITHUB_REPO: gpt-code-generator # optional, default: ${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}
GITHUB_TOKEN: "${{ secrets.TOKEN }}" # optional, default: ${{ secrets.GITHUB_TOKEN }}
IGNORE_FILE_EXTENSIONS: "" # optional
IGNORE_DIRECTORIES: "" # optional
install command
pip install gpt-code-generator
save-code-generating-precondition command
save-code-generating-precondition --help
gpt-code-generator command
gpt-code-generator --help
for developer setup
pip install poetry
poetry config virtualenvs.in-project true --local
make install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gpt_code_generator-0.0.5.tar.gz
.
File metadata
- Download URL: gpt_code_generator-0.0.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0745077497aa21445c14f484d0270233ac1651e3fbd76d5351b7c794a85051d2 |
|
MD5 | 8b59a5dc0d26d9fb3c6103943e33d317 |
|
BLAKE2b-256 | 1cc2cc316ede9b7acf1f084ae2e907ec7d45c7ff5d576e345c4e884ca6ff1f06 |
File details
Details for the file gpt_code_generator-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: gpt_code_generator-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ea3f091cbcb92ba3d43c3a2948668a8a455371acb15f9cb937ef91ad83b5e98 |
|
MD5 | 7e8db47197b74ed535595fd3e311b3d1 |
|
BLAKE2b-256 | 5bb3dc83a84b2d7e8d06a61ab0669ae1587fadf531fd53d62070b54358c0274b |