Skip to main content

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

gpt_code_generator-0.0.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

gpt_code_generator-0.0.4-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file gpt_code_generator-0.0.4.tar.gz.

File metadata

  • Download URL: gpt_code_generator-0.0.4.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

Hashes for gpt_code_generator-0.0.4.tar.gz
Algorithm Hash digest
SHA256 139e2d4293e25b3e6678ed61d748cb1b5eed08ac85e44e2fa3ef3674e5d0870c
MD5 896e520a8fa55e55b61f296a91a68d9e
BLAKE2b-256 0f8a22876d3f2aa6c0a2cfb3795a328df7020774fc9432aa73b3b3d7cbbf614d

See more details on using hashes here.

File details

Details for the file gpt_code_generator-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gpt_code_generator-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a17f14381345603f0dbd6851754519098ab82181d7f15c952d4ee29dd27b359d
MD5 39487ac4fe96f2bbe8827a3956867914
BLAKE2b-256 bc464b155cf505f0a0513a766f81e3a1a124c0180dd8724e33bcbf7195aa9c31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page