ai cli
v1.3.0

您需要在全球安裝
npm i @abhagsain/ai-cli -g
用法
$ ai ask "Check process running on port"
您需要輸入自己的OpenAI API密鑰,這是您可以獲得一個鍵

ai auth ,輸入您的API鍵,您就可以了!定價
當前的及時長度~800令牌,平均響應長度~40令牌。 gpt-3.5-turbo的定價為每1K輸入令牌$0.001 ,每1K輸出令牌$0.002 ,每$0.0009/command 。我們將看看是否可以改善響應,並通過微調減少人均成本。
通過運行ai autocomplete並按照說明添加自動完成。這非常容易。 
__
__
自動生成的文檔
$ 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]向您的終端向GPT3提出問題
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"
請參閱代碼:dist/命令/ask.ts
ai auth更新現有或添加新的OpenAI API密鑰
USAGE
$ ai auth
DESCRIPTION
Update existing or add new OpenAI API Key
EXAMPLES
$ ai auth (Follow the prompt)
請參閱代碼:dist/commands/auth.ts
ai autocomplete [SHELL]顯示自動完成的安裝說明
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
請參閱代碼: @oclif/plugin-autocomplete
ai help [COMMAND]顯示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.
請參閱代碼: @oclif/插件螺旋
ai model更改模型偏好(默認:GPT-3.5-Turbo)
USAGE
$ ai model
DESCRIPTION
Change model preference (default: gpt-3.5-turbo)
EXAMPLES
$ ai model (Follow the prompt)
請參閱代碼:DIST/命令/型號
ai update [CHANNEL]更新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
請參閱代碼: @oclif/plugin-update