
Anda harus menginstalnya secara global
npm i @abhagsain/ai-cli -g
Penggunaan
$ ai ask "Check process running on port"
Anda harus memasukkan kunci API openai Anda sendiri, inilah cara Anda mendapatkannya

ai auth , masukkan kunci API Anda dan Anda siap melakukannya!Harga
Panjang prompt saat ini adalah ~800 token dan panjang respons rata -rata adalah ~40 token. Harga untuk gpt-3.5-turbo adalah $0.001 per 1K token input dan $0.002 per 1K token output yaitu ~ $0.0009/command . Kami akan melihat apakah kami dapat meningkatkan respons serta mengurangi biaya per-biaya dengan penyesuaian.
Tambahkan AutoComplete dengan menjalankan ai autocomplete dan ikuti instruksi. Itu sangat mudah. 
__
__
Dokumentasi yang dihasilkan secara otomatis
$ npm install -g @abhagsain/ai-cli
$ ai COMMAND
running command...
$ ai (--version)
@abhagsain/ai-cli/1.3.0 darwin-arm64 node-v18.0.0
$ ai --help [COMMAND]
USAGE
$ ai COMMAND
...ai ask [question]ai authai autocomplete [SHELL]ai help [COMMAND]ai modelai update [CHANNEL]ai ask [question]Ajukan pertanyaan ke GPT3 dari terminal Anda
USAGE
$ ai ask [question]
ARGUMENTS
QUESTION Your question
DESCRIPTION
Ask question to GPT3 from your terminal
EXAMPLES
$ ai ask "Check running process on port 3000"
Lihat Kode: Dist/Commands/Ask.ts
ai authPerbarui yang ada atau tambahkan kunci API OpenAI baru
USAGE
$ ai auth
DESCRIPTION
Update existing or add new OpenAI API Key
EXAMPLES
$ ai auth (Follow the prompt)
Lihat Kode: Dist/Commands/Auth.ts
ai autocomplete [SHELL]Tampilkan instruksi instalasi AutoComplete
USAGE
$ ai autocomplete [SHELL] [-r]
ARGUMENTS
SHELL shell type
FLAGS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
DESCRIPTION
display autocomplete installation instructions
EXAMPLES
$ ai autocomplete
$ ai autocomplete bash
$ ai autocomplete zsh
$ ai autocomplete --refresh-cache
Lihat Kode: @oclif/plugin-autocomplete
ai help [COMMAND]Tampilkan bantuan untuk AI.
USAGE
$ ai help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for ai.
Lihat kode: @oclif/plugin-help
ai modelUbah Preferensi Model (Default: GPT-3.5-Turbo)
USAGE
$ ai model
DESCRIPTION
Change model preference (default: gpt-3.5-turbo)
EXAMPLES
$ ai model (Follow the prompt)
Lihat Kode: Dist/Commands/Model.ts
ai update [CHANNEL]Perbarui AI CLI
USAGE
$ ai update [CHANNEL] [-a] [-v <value> | -i] [--force]
FLAGS
-a, --available Install a specific version.
-i, --interactive Interactively select version to install. This is ignored if a channel is provided.
-v, --version=<value> Install a specific version.
--force Force a re-download of the requested version.
DESCRIPTION
update the ai CLI
EXAMPLES
Update to the stable channel:
$ ai update stable
Update to a specific version:
$ ai update --version 1.0.0
Interactively select version:
$ ai update --interactive
See available versions:
$ ai update --available
Lihat kode: @oclif/plugin-update