Skip to content

ryoppippi/zigchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zigchat ZIG ❤️ OPENAI

GitHub Release Zig Built with Nix .github/workflows/ci.yaml

画面収録 2023-09-24 11 59 49

Install

GitHub Releases

Download a prebuilt binary from GitHub Releases and install it in $PATH.

aqua

aqua is a CLI Version Manager.

aqua g -i ryoppippi/zigchat

How to run

export OPENAI_API_KEY=<your key>
zigchat "Hello!"

Development

This project uses Nix flakes and just for development.

Quick Start

# Run directly from GitHub
nix shell github:ryoppippi/zigchat -c zigchat "Hello!"

# Or build locally
nix build
./result/bin/zigchat "Hello!"

Development Environment

# Enter development shell
nix develop

# Use just commands
just build           # Build the project
just build-release   # Build with release optimisation
just test            # Run tests
just fmt             # Format code
just fmt-check       # Check formatting
just run "Hello!"    # Run the application
just zon2nix         # Regenerate deps.nix

Authors

License

MIT

About

Command that sends a prompt to OpenAI and returns a reply

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors