duet gpt
1.0.0
?新闻: Duetgpt不再使用Langchain,而是使用OpenAI功能。这意味着可靠性和性能的显着提高。
Duetgpt是一种实验性AI驱动的CLI工具和半自治的代理,可帮助开发人员完成编码任务和文件系统任务。开发人员向AI描述了任务,然后向AI发出命令或后续问题以进行澄清。经过开发人员的批准后, Duetgpt自动执行AI发出的命令。
Duetgpt作为一般狂欢助理的表现也非常好。
与Openai模型一起使用:
示例任务:
Duetgpt建立在OpenAI的GPT-4语言模型上,并使用其对话能力与开发人员进行双向对话。它使用OpenAI API的新发布的功能,该功能允许AI进行函数调用。
这是一个30秒的演示,使用Duetgpt来构建Node.js应用,该应用使用ASCII字符绘制Mandelbrot fractal到控制台:
使用NPM在全球安装Duetgpt CLI工具:
npm install -g duet-gpt要启动Duetgpt,请运行以下命令:
duet-gpt提示您输入OpenAI API密钥。您可以在OpenAI仪表板上找到API键。
_ _ _
| | | | | |
__ | | _ _ ___ | | _ __ _ _ __ | | _
/ _ ` | | | | / _ __/ _ ` | ' _ | __|
| (_| | |_| | __/ || (_| | |_) | |_
__,_|__,_|___|____, | .__/ __|
__/ | |
|___/|_|
┌ DuetGPT
│
◆ Please enter your OpenAI API key:
│ sk-XXX…
└ 克隆存储库。
安装依赖项:
npm installnpm start为了说明互动的工作方式,我选择了一项超级简单的任务。假设您想将.yarn/cache添加到.gitignore 。这是如何要求Duetgpt帮助您的方法:
_ _ _
| | | | | |
__| |_ _ ___| |_ __ _ _ __ | |_
/ _` | | | |/ _ __/ _` | '_ | __|
| (_| | |_| | __/ || (_| | |_) | |_
__,_|__,_|___|____, | .__/ __|
__/ | |
|___/|_|
┌ DuetGPT
│
◇ LLM and memory started
│
┌ ? ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ My mission is to collaborate with you as a developer by providing specific bash or file modification commands to help │
│ you complete your development-related tasks, while effectively engaging in two-way interactions. │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
│
◇ What would you like to do?
│ Add .yarn/cache to .gitignore
│
◇ AI response received
│
┌ ? ────────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ First, I need to check if .gitignore exists in the current directory. │
│ │
│ § BASH │
│ │
│ 1 ls .gitignore │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────┘
│
◇ What would you like to do?
│ Run command
│
┌ ────────────┐
│ │
│ .gitignore │
│ │
└────────────────┘
│
◇ AI response received
│
┌ ? ────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ I will now append '.yarn/cache' to your existing .gitignore file. │
│ │
│ § BASH │
│ │
│ 1 echo ".yarn/cache" >> .gitignore │
│ │
│ │
└────────────────────────────────────────────────────────────────────────┘
│
◇ What would you like to do?
│ Run command
│
┌ ────┐
│ │
│ OK │
│ │
└────────┘
│
◆ What would you like to do?
│ Not sure
└
欢迎捐款!请打开问题或提交拉动请求。
麻省理工学院