時間:2023-11-22 11:35:49 作者:無名 瀏覽量:55
在上周的 Microsoft Ignite 大會上,微軟宣布為 Windows Terminal 帶來人工智能的支持,其實這是微軟在 Build 2023 上就透露要支持的功能。
開發者可以使用自然語言與 AI 進行對話以獲得推薦的命令、錯誤解釋、操作步驟等,幫助開發者提高效率,節省開發時間。

新的人工智能聊天程序名為 Terminal Chat,由于 Windows Terminal 是開源的,所以 Terminal Chat 也是開源的,當然微軟并不是把 GPT 塞進了終端里,而是提供了 API 接口。
使用該功能用戶需要自備 Microsoft Azure OpenAI API,提供 API KEY 后即可使用,目前不支持 OPENAI API 和其他 API,所以只能使用 Azure。
集成 Terminal Chat 的 Windows Terminal 目前還在測試中,有興趣的開發者可以通過 GitHub 下載 Windows Terminal Canary 版進行體驗。
詳情和部署方法請看:https://devblogs.microsoft.com/commandline/terminal-chat-in-windows-terminal-canary/