Add MCP support (#1028)
This commit is contained in:
@@ -137,6 +137,10 @@ export function createDyadEngine(
|
||||
if ("dyadRequestId" in parsedBody) {
|
||||
delete parsedBody.dyadRequestId;
|
||||
}
|
||||
const dyadDisableFiles = parsedBody.dyadDisableFiles;
|
||||
if ("dyadDisableFiles" in parsedBody) {
|
||||
delete parsedBody.dyadDisableFiles;
|
||||
}
|
||||
|
||||
// Track and modify requestId with attempt number
|
||||
let modifiedRequestId = requestId;
|
||||
@@ -147,7 +151,7 @@ export function createDyadEngine(
|
||||
}
|
||||
|
||||
// Add files to the request if they exist
|
||||
if (files?.length) {
|
||||
if (files?.length && !dyadDisableFiles) {
|
||||
parsedBody.dyad_options = {
|
||||
files,
|
||||
enable_lazy_edits: options.dyadOptions.enableLazyEdits,
|
||||
|
||||
Reference in New Issue
Block a user