Codedog reviews your pull request using llm.
Project description
🐶 Codedog
Review your Github/Gitlab PR with ChatGPT
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.
-
Run server with:
poetry install --with http poetry run demoserver
Development
poetry install --with dev, test, http
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codedog-0.5.0.tar.gz
(21.1 kB
view hashes)
Built Distribution
codedog-0.5.0-py3-none-any.whl
(32.2 kB
view hashes)