aitalk

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

AI Talk CLI

中文说明

Create and share AI talks https://ai-talk.app.

A side project of Aoi

Install

You can download aitalk from the GitHub release page. Alternatively, you can use Go to install aitalk on your system:

go install github.com/aitalk-app/aitalk@latest

Set your OpenAI API key as an environment variable.

export OPENAI_API_KEY=<your_api_key>

# Set a custom OpenAI API host url if needed
export OPENAI_API_HOST=<your_custom_api_host_url>

Usage

To create a talk with two AI automatically
aitalk --topic "Is PHP the best programming language?" --role "A C++ programmer who think C++ is best" --role "A PHP programmer who believe PHP is best"
Use a different language
# show supported languages
aitalk lang

# specify language
aitalk --lang {lang} --topic "Is PHP the best programming language?" --role "A C++ programmer who think C++ is best" --role "A PHP programmer who believe PHP is best"
To create a talk with AI interactively
aitalk --topic "Will AI replace human?"

Manage your talks (optional)

If you want to manage your talks on https://ai-talk.app, you need to authenticate. Run the following command and open the displayed URL in your web browser:

aitalk auth

If you skip this step now, you can run the above command later and all previously created talks will automatically get assigned to your profile.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL