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.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpt_code_generator-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 adcedb77be1471be399a2644f4e8423e637875a16fe5000773b6f60654442e8b
MD5 3e6c42506a652f99015dea9486c26c6b
BLAKE2b-256 871afa949802693850bdec88a7261eb92243e4156139e71fc185e2b268d958f0

See more details on using hashes here.

File details

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

File metadata

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

Hashes for gpt_code_generator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6e642e33b1d82239fde4382ea682b1130f441b72c73b5b1fba711f6905310c3
MD5 6e09b2b5bcd3227d0bea91e851485883
BLAKE2b-256 291d26167d9ec4971226b7c962657281916343d458208a208bb72c1b975c533a

See more details on using hashes here.

Supported by

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