fix tạm lỗi cài đặt AI prompt

This commit is contained in:
2026-07-21 21:38:37 +07:00
parent bbc42c630e
commit 04403b0af7
7 changed files with 484 additions and 198 deletions
+3 -2
View File
@@ -155,7 +155,7 @@ const AIGateway = (function() {
};
}
async function executePrompt({ prompt, provider, model, apiKey, baseUrl, dawContext, tools }) {
async function executeAIPrompt({ prompt, provider, model, apiKey, baseUrl, dawContext, tools }) {
const messages = buildUserMessage(prompt, dawContext);
const toolList = tools || DEFAULT_TOOLS;
@@ -211,11 +211,12 @@ const AIGateway = (function() {
extractFunctionCalls,
buildUserMessage,
buildAIPromptContext,
executePrompt,
executeAIPrompt,
createMidiItem,
modifyMidiNotes,
processAIDSP
};
})();
window.executeAIPrompt = AIGateway.executeAIPrompt;
window.AIGateway = AIGateway;