Untitled conversation
- Usercode
LinkDriveItem(MicrosoftDriveItemDefinition originalDriveItem, string toLinkName, bool shouldOverwrite = false) { var sharingLink = await _graphServiceClient.Drives[originalDriveItem.Drive.DriveId].Items[originalDriveItem.DriveItemId].CreateLink("view", "organization").Request().PostAsync(); var newItem = new DriveItem { Name = duplicateFile.Name, File = new File { MimeType = "application/x-microsoft.link" }, AdditionalData = new Dictionary<string, object> { { "@microsoft.graph.downloadUrl", sharingLink.Link.WebUrl } } }; await _graphClient.Drives[driveItem.Drive.DriveId].Items[duplicateFile.ParentReference.Id].Children.Request().AddAsync(newItem); await _graphClient.Drives[driveItem.Drive.DriveId].Items[duplicateFile.Id].DeleteAsync(); return true; }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.