
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
ChatGPT shell command Support gpt-4
ChatGPT 支持终端命令行啦,支持gpt-4
支持连续对话,在终端输入asst即可开启对话。
如让它写个feapder的爬虫,实际对答如下:
pip install asst
变量 | 必须 | 描述 |
---|---|---|
OPENAI_API_KEY | 是 | OpenAI的密钥 |
OPENAI_BASE_URL | 否 | OpenAI的镜像接口地址,如:https://api.openai.com, 注意不需要携带 v1/chat/completions |
OPENAI_PROXY | 否 | 代理,如 username:password@ip:port |
OPENAI_MODEL | 否 | 模型, 支持 gpt-4-1106-preview、gpt-3.5-turbo等,默认为 gpt-4-1106-preview |
没有OPENAI_API_KEY,openai官网自己搞
设置OPENAI_API_KEY="chatgpt的密钥"
到环境变量
mac或linux下 临时设置的方式
export OPENAI_API_KEY=your key
永久设置
vim ~/.bash_profile
# 在合适的位置添加环境变量
export OPENAI_API_KEY="your key"
window下设置为系统环境变量
参考:https://blog.csdn.net/xue_nuo/article/details/114793534
> asst
You: hello
Bot: Hi there!
国内用户因为墙的原因,无法直接访问chatgpt,需配置镜像api或使用代理
代理使用方式:
设置ASST_PROXY="代理"
到环境变量
如:
export ASST_PROXY="username:password@ip:port"
推荐:brightdata
不需要公司、不需要实名,准备好邮箱即可
地址:https://brightdata.grsm.io/r0g6zla8seqs
若提示认证,选择支付宝即可,并不需要真正的认证
充值支持支付宝
使用方式:
选择机房代理,因为便宜。追求稳定选择住宅
配置:
查看访问参数
配置代理
设置ASST_PROXY="代理"
到环境变量
如:
export ASST_PROXY="用户名:密码@主机"
在chatgpt官网申请
FAQs
ChatGPT shell command
We found that asst demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.