Skip to content

Commit

Permalink
Merge pull request #1604 from solliancenet/cj-fix-fileid-predicate-080
Browse files Browse the repository at this point in the history
(0.8.0) Fixes an issue with the Azure OpenAI FileId filtering predicate
  • Loading branch information
codingbandit authored Aug 23, 2024
2 parents 9652113 + 4951dff commit da6124c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private async Task<FileContent> LoadFileContent(string fileUserContextName, stri
{
var fileUserContext = await LoadFileUserContext(fileUserContextName);
var fileMapping = fileUserContext.Files.Values
.SingleOrDefault(f => f.OpenAIFileId == openAIFileId)
.SingleOrDefault(f => !f.Generated && f.OpenAIFileId == openAIFileId)
?? throw new ResourceProviderException(
$"Could not find the file {openAIFileId} in the {fileUserContextName} file user context.",
StatusCodes.Status404NotFound);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class FileMapping
/// <summary>
/// The FoundationaLLM.Attachment resource object id.
/// </summary>
[JsonPropertyName("foundationallm_attachment_object_id")]
[JsonPropertyName("foundationallm_object_id")]
public required string FoundationaLLMObjectId { get; set; }

/// <summary>
Expand Down

0 comments on commit da6124c

Please sign in to comment.