Skip to content

Commit

Permalink
optimize test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
HamaWhiteGG committed Sep 30, 2023
1 parent ab11233 commit bc5e5cd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ void testRunQuery() {
.init();

var llm = ChatOpenAI.builder()
.model("gpt-4")
.temperature(0)
.build().init();

Expand All @@ -105,7 +106,7 @@ void testRunQuery() {
// SELECT SQRT(AVG(Age)) FROM titanic
var actual = agentExecutor.run("whats the square root of the average age?");
// sometimes it's 'The square root of the average age is approximately 5.07.'
assertEquals("5.07", actual);
assertEquals("The square root of the average age is approximately 5.07.", actual);

// TODO: It should be DESC here, not ASC.
// SELECT Name FROM titanic WHERE Survived = 1 ORDER BY Age ASC LIMIT 1
Expand Down

0 comments on commit bc5e5cd

Please sign in to comment.