Skip to content

A tool that allows you to chat with GPT in the cli

Notifications You must be signed in to change notification settings

taosu0216/gpt-cli-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpt-cli-tools

A tool that allows you to chat with GPT in the cli

use

依赖

pip install -r requirements.txt

配置

在main.py中填充自己的api_key和baseurl,以及model(对话模型)

使用

生成可执行文件

git clone https://github.com/taosu0216/gpt-cli-tools.git
cd gpt-cli-tools
go mod init gpt-cli-tools
go mod tidy
go build -o ai.exe main.go

添加到环境变量

只需将该exe文件所在目录添加到环境变量即可 设置 -> 系统 -> 系统信息 -> 高级系统设置 -> 环境变量 -> 用户环境变量 -> Path -> 将exe文件所在目录添加到环境变量中

效果图

img 然后就可以在电脑的任一位置使用跟ai对话的cli了 进行提问的判断是界面有两个空行,也就是三行回车

v2

直接在main.go修改baseurl和key还有model模型,然后go build即可

About

A tool that allows you to chat with GPT in the cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages