quickcommand.askAI支持流式响应,支持使用默认api配置

This commit is contained in:
fofolee
2025-02-21 11:31:45 +08:00
parent 0090442101
commit 1e5a4c1ff5
7 changed files with 143 additions and 265 deletions

View File

@@ -8,7 +8,7 @@ const stopMonitor = () => {
// 监控剪贴板变化
const watchClipboard = async function () {
const args = ["-type", "clipboard", "-once"];
const loadingBar = await quickcommand.showLoadingBar({
const loadingBar = await quickcommand.showProcessBar({
text: "等待剪贴板变化...",
onClose: () => {
stopMonitor();
@@ -44,7 +44,7 @@ const watchFileSystem = async function (watchPath, options = {}) {
args.push("-recursive", "false");
}
const loadingBar = await quickcommand.showLoadingBar({
const loadingBar = await quickcommand.showProcessBar({
text: "等待文件变化...",
onClose: () => {
stopMonitor();