?ニュース: DuetGPTはLangchainを使用しなくなりましたが、代わりにOpenai機能を使用します。これは、信頼性とパフォーマンスの大幅な改善を意味します。
DuetGPTは、コードタスクとファイルシステムタスクを備えた開発者を支援する実験的なAI駆動のCLIツールと半自動エージェントです。開発者は、AIへのタスクについて説明します。AIは、説明のためにコマンドまたはフォローアップの質問を発行します。開発者による承認後、 DuetGPTはAIが発行したコマンドを自動的に実行します。
Duetgptは、一般的なバッシュヘルパーとしても非常にうまく機能します。
Openaiモデルで動作します:
タスクの例:
DuetGPTは、OpenAIのGPT-4言語モデルに基づいて構築され、会話機能を使用して開発者との双方向の会話に参加します。 AIが関数呼び出しを行うことを可能にするOpenai APIの新しくリリースされた機能を使用します。
30秒のデモです。DuetGPTを使用して、ASCII文字をコンソールに使用してMandelBrot Fractalを描画するNode.jsアプリを作成します。
NPMを使用して、DUETGPT CLIツールをグローバルにインストールします。
npm install -g duet-gptDuetGPTを開始するには、次のコマンドを実行します。
duet-gptOpenai 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
└
貢献は大歓迎です!問題を開くか、プルリクエストを送信してください。
mit