Skip to content

Commit

Permalink
put back parameters in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
shilpakancharla committed Sep 26, 2024
1 parent 21be624 commit c0a2cff
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/models/generative-model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ describe("GenerativeModel", () => {
value.includes("be friendly") &&
value.includes("temperature") &&
value.includes("testField") &&
value.includes(HarmBlockThreshold.BLOCK_LOW_AND_ABOVE)
value.includes(HarmBlockThreshold.BLOCK_LOW_AND_ABOVE) &&
value.includes("presencePenalty") &&
value.includes("frequencyPenalty") &&
value.includes("responseLogprobs") &&
value.includes("logprobs")
);
}),
match((value) => {
Expand Down Expand Up @@ -206,6 +210,10 @@ describe("GenerativeModel", () => {
},
},
},
presencePenalty: 0.6,
frequencyPenalty: 0.5,
responseLogprobs: true,
logprobs: 2,
},
safetySettings: [
{
Expand Down Expand Up @@ -235,7 +243,11 @@ describe("GenerativeModel", () => {
value.includes("topK") &&
value.includes("newTestField") &&
!value.includes("testField") &&
value.includes(HarmCategory.HARM_CATEGORY_HARASSMENT)
value.includes(HarmCategory.HARM_CATEGORY_HARASSMENT) &&
value.includes("presencePenalty") &&
value.includes("frequencyPenalty") &&
value.includes("responseLogprobs") &&
value.includes("logprobs")
);
}),
{},
Expand Down

0 comments on commit c0a2cff

Please sign in to comment.