# VSCode插件Aide配置教程

## 插件安装

* 打开VSCode
* 点击侧栏`扩展`icon
* 搜索`Aide`点击安装

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide1.png" alt="" width="563">

## 插件配置

* 安装完成后点击`设置`按钮，选择`扩展设置`

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide2.png" alt="" width="563">

* 进入设置页面后滑到页面最下方
* OpenAI Base URL务必填`https://one.ocoolai.com/v1`
* OpenAI Key填写你在ocoolAPI站点生成的秘钥，如果没有或者不会生成可以查看[获取秘钥教程](https://docs.ooo.cool/#keyhuoqu)
* OpenAI Model填本站任意你想用的模型名，不知道的话可在价格页面或者API站的[个人中心](https://one.ocoolai.com/account/profile)复制可用的模型粘贴到`自定义模型`输入框中

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide3.png" alt="" width="563">

## 使用示例

* 之后回到你的代码编辑页面，点击右上角书本的icon即可开始解释你的代码，以下为示例

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide4.png" alt="" width="563">

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide5.png" alt="" width="563">


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.ocoolai.com/app_guides/plugins/vscode-cha-jian-aide-pei-zhi-jiao-cheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
