厌倦了依赖 Copilot、Cursor AI 或 ChatGPT 等付费工具?以下是如何将功能强大且完全免费的 AI 助手直接集成到 Visual Studio Code 中。按照以下步骤操作,您将拥有一位触手可及的个人编码大师——没有任何限制!
{ "models": [ { "model": "AUTODETECT", "title": "Ollama", "apiBase": "http://localhost:11434", "provider": "ollama" }, { "model": "AUTODETECT", "title": "Groq", "apiKey": "YOUR_GROQ_API_KEY", "provider": "groq" } ], "customCommands": [ { "name": "test", "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", "description": "Write unit tests for highlighted code" } ], "tabAutocompleteModel": { "title": "codeqwen", "provider": "ollama", "model": "starcoder2:3b" }, "contextProviders": [ { "name": "code", "params": {} }, { "name": "docs", "params": {} }, { "name": "diff", "params": {} }, { "name": "terminal", "params": {} }, { "name": "problems", "params": {} }, { "name": "folder", "params": {} }, { "name": "codebase", "params": {} } ], "slashCommands": [ { "name": "edit", "description": "Edit selected code" }, { "name": "comment", "description": "Write comments for the selected code" }, { "name": "share", "description": "Export the current chat session to markdown" }, { "name": "cmd", "description": "Generate a shell command" }, { "name": "commit", "description": "Generate a git commit message" } ] }
体验更智能、更快速的编码方式。立即设置您的免费 AI 助手,将您的编码工作流程提升到新的水平! ?
以上是没有副驾驶?没问题!立即在 VSCode 中获取免费 AI的详细内容。更多信息请关注PHP中文网其他相关文章!