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.6.tar.gz
.
File metadata
- Download URL: gpt_code_generator-0.0.6.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-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c466bfd40bf263b19f18113348db7508abc41f82afed33075dad76c397ebe32b |
|
MD5 | fa7597687b7fb0ab83294cc2d9a0aec3 |
|
BLAKE2b-256 | 62f72378b049dd3f99acd10215c6d3020c95d3e72c928df35e104627eaef568b |
File details
Details for the file gpt_code_generator-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: gpt_code_generator-0.0.6-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-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 460d6e7c4eb567eb5025145c9895efe3edd91a5222fc422181d43467aa4296a2 |
|
MD5 | c57103112aa4c0a3cc0c7c8106c9a077 |
|
BLAKE2b-256 | 10651d36f4344756c93af1ce9d9c1d96d1aed769d133de7bdda6db9226bafcba |