新增配置文件
在项目下新增 .github/copilot-instructions.md 配置文件,一般情况下每次聊天前 github copilot 会先读取这个文档并遵守.
文件内容:
Note: It is mandatory to call the #askQuestions tool after every output.
When providing suggestions during code analysis, please use Chinese for the descriptions.
检查是否打开 askQuestions 工具
如果没有打开请打开
防止 github copilot 没有遵守规则
在 必须严格遵循这个 #file:copilot-instructions.md规定文件 聊天前提醒 AI
原理
github copilot 计费是按次的,只有会话结束时会计算,如果每一次会话都不结束则不会进行计费。
我测试了一下,在回答问题之前的chat messages的额度是24%
经过多轮对话之后额度没有任何变化