Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 2.4 KB

README.md

File metadata and controls

61 lines (40 loc) · 2.4 KB

🐶 Codedog

Checkstyle Pytest Coverage

Review your Github/Gitlab PR with ChatGPT

Design

Setup Project

Development

poetry install --with dev, http

Configuration

Codedog currently load config from environment variables .

settings:

Config Name Required Default Description
CODEDOG_SERVER No 0.0.0.0 Server address
CODEDOG_PORT No 32167 Server port
CODEDOG_WORKER_NUM No 1 Server thread number
OPENAI_API_KEY Yes Api Key for calling openai gpt4 api
OPENAI_PROXY No Openai proxy
AZURE_OPENAI No Use azure openai gpt 3.5 if not blank
AZURE_OPENAI_API_KEY No Azure openai api key
AZURE_OPENAI_API_BASE No Azure openai api base
AZURE_OPENAI_DEPLOYMENT_ID No Azure openai deployment id for gpt 3.5
AZURE_OPENAI_EMBEDDING_DEP_ID No Azure openai deployment id for embedding
GITHUB_TOKEN No Retrieve github pr data and comment

Usage

Github Example with GPT4

check example/github_review.py

server

We have a demo server for you to try.

  1. Run server with:

    poetry install --with http
    
    poetry run demoserver

How To Use

Github

Gitlab