fix tạm lỗi cài đặt AI prompt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user