Skip to content

Commit

Permalink
rename model
Browse files Browse the repository at this point in the history
  • Loading branch information
mwwoda committed Jul 19, 2024
1 parent 74740b1 commit 4844428
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Box.V2.Test.Integration/BoxAIManagerIntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task SendAIQuestionAsync_ForSingleItem_ReturnsValidResponse()
{
Prompt = "What is the name of the file?",
Items = new List<BoxAIAskItem>() { new BoxAIAskItem() { Id = uploadedFile.Id } },
Mode = AiAskMode.single_item_qa
Mode = BoxAIAskMode.single_item_qa
};

await Retry(async () =>
Expand Down Expand Up @@ -53,7 +53,7 @@ public async Task SendAIQuestionAsync_ForMultipleItems_ReturnsValidResponse()
new BoxAIAskItem() { Id = uploadedFile1.Id },
new BoxAIAskItem() { Id = uploadedFile2.Id }
},
Mode = AiAskMode.multiple_item_qa
Mode = BoxAIAskMode.multiple_item_qa
};

await Retry(async () =>
Expand Down
2 changes: 1 addition & 1 deletion Box.V2.Test/BoxAIManagerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task SendAiQuestionAsync_Success()

var requestBody = new BoxAIAskRequest()
{
Mode = AiAskMode.single_item_qa,
Mode = BoxAIAskMode.single_item_qa,
Prompt = "What is the value provided by public APIs based on this document?",
Items = new List<BoxAIAskItem>()
{
Expand Down
4 changes: 2 additions & 2 deletions Box.V2/Models/Request/BoxAIAskRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class BoxAIAskRequest
/// </summary>
[JsonProperty(PropertyName = FieldMode)]
[JsonConverter(typeof(StringEnumConverter))]
public AiAskMode Mode { get; set; }
public BoxAIAskMode Mode { get; set; }

/// <summary>
/// The prompt provided by the client to be answered by the LLM.The prompt's length is limited to 10000 characters.
Expand Down Expand Up @@ -72,7 +72,7 @@ public class BoxAIAskItem
/// The mode specifies if this request is for a single or multiple items. If you select single_item_qa the items array can have one element only.
/// Selecting multiple_item_qa allows you to provide up to 25 items.
/// </summary>
public enum AiAskMode
public enum BoxAIAskMode
{
multiple_item_qa,
single_item_qa
Expand Down

0 comments on commit 4844428

Please sign in to comment.