Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Test Toolkit: Remove AOAI Model Version #1861

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/Tools/AI Test Toolkit/src/AITTestContext.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,6 @@ codeunit 149044 "AIT Test Context"
exit(AITTestContextImpl.GetExpectedData());
end;

/// <summary>
/// Get the AOAI Model Version for the AI Test Suite.
/// </summary>
/// <returns>The AOAI Model Version as an Option.</returns>
procedure GetAOAIModelVersion(): Option
begin
exit(AITTestContextImpl.GetAOAIModelVersion());
end;

/// <summary>
/// Sets the answer for a question and answer evaluation.
/// This will also copy the context, question and ground truth to the output dataset.
Expand Down
23 changes: 0 additions & 23 deletions src/Tools/AI Test Toolkit/src/AITTestContextImpl.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,6 @@ codeunit 149043 "AIT Test Context Impl."
exit(GetTestInput(ExpectedDataTok));
end;

/// <summary>
/// Get the AOAI Model Version for the AI Test Suite.
/// </summary>
/// <returns>The AOAI Model Version as an Option.</returns>
procedure GetAOAIModelVersion(): Option
var
AITTestSuite: Record "AIT Test Suite";
begin
GetAITTestSuite(AITTestSuite);
exit(AITTestSuite."Model Version");
end;

/// <summary>
/// Sets the answer for a question and answer evaluation.
/// This will also copy the context, question and ground truth to the output dataset.
Expand Down Expand Up @@ -254,17 +242,6 @@ codeunit 149043 "AIT Test Context Impl."
AITTestSuiteMgt.SetTestOutput(AITALTestSuiteMgt.GetDefaultRunProcedureOperationLbl(), TestOutputCU.Testdata().ToText());
end;

/// <summary>
/// Returns the AITTestSuite associated with the sessions.
/// </summary>
/// <param name="AITTestMethodLine">AITTestMethodLine associated with the session.</param>
local procedure GetAITTestSuite(var AITTestSuite: Record "AIT Test Suite")
var
AITTestRunIteration: Codeunit "AIT Test Run Iteration";
begin
AITTestRunIteration.GetAITTestSuite(AITTestSuite);
end;

/// <summary>
/// Returns the AITTestMethodLine associated with the sessions.
/// </summary>
Expand Down
4 changes: 0 additions & 4 deletions src/Tools/AI Test Toolkit/src/API/AITLogEntryAPI.Page.al
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ page 149038 "AIT Log Entry API"
{
Caption = 'Version';
}
field(modelVersion; Rec."Model Version")
{
Caption = 'AOAI Model Version';
}
field("startTime"; Rec."Start Time")
{
Caption = 'Start Time';
Expand Down
5 changes: 0 additions & 5 deletions src/Tools/AI Test Toolkit/src/Logs/AITLogEntry.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@ table 149034 "AIT Log Entry"
{
Caption = 'Output Data';
}
field(40; "Model Version"; Option)
{
Caption = 'AOAI Model Version';
OptionMembers = Latest,Preview;
}
}

keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ page 149031 "AIT Test Suite"
ShowMandatory = true;
NotBlank = true;
}
field("Model Version"; Rec."Model Version")
{
}
field("Test Runner Id"; TestRunnerDisplayName)
{
Caption = 'Test Runner';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ table 149030 "AIT Test Suite"
Caption = 'Unique RunID';
Editable = false;
}
field(20; "Model Version"; Option)
{
Caption = 'AOAI Model Version';
ToolTip = 'Specifies the model version to be used by the tests in the test suite.';
OptionMembers = Latest,Preview;
}
field(21; "No. of Tests Executed"; Integer)
{
Caption = 'No. of Tests Executed';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ xmlport 149031 "AIT Test Suite Import/Export"
{
Occurrence = Optional;
}
fieldattribute(ModelVersion; "AITSuite"."Model Version")
{
Occurrence = Optional;
}
fieldattribute(Dataset; "AITSuite"."Input Dataset")
{
Occurrence = Required;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ codeunit 149034 "AIT Test Suite Mgt."
AITLogEntry.Operation := CopyStr(ModifiedOperation, 1, MaxStrLen(AITLogEntry.Operation));
AITLogEntry."Original Operation" := CopyStr(Operation, 1, MaxStrLen(AITLogEntry."Original Operation"));
AITLogEntry.Tag := AITTestRunIteration.GetAITTestSuiteTag();
AITLogEntry."Model Version" := GlobalAITTestSuite."Model Version";
AITLogEntry."Entry No." := 0;

if ModifiedExecutionSuccess then
Expand Down
Loading