Skip to content

Commit

Permalink
feat(chat-e2e): added 'gpt-4o-mini-2024-07-18' model to api tests (#1877
Browse files Browse the repository at this point in the history
)
  • Loading branch information
irinakartun authored Aug 6, 2024
1 parent e954092 commit e2064c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/chat-e2e/src/testData/expectedConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const ExpectedConstants = {
copyUrlTooltip: 'Copy URL',
revokeAccessTo: (name: string) => `Confirm unsharing: ${name}`,
attachments: 'Attachments',
responseContentPattern: /(?<="content":")[^"^\\$]+/g,
responseContentPattern: /(?<="content":")[^"^$]+/g,
responseFileUrlPattern: /(?<="url":")[^"$]+/g,
responseFileUrlContentPattern: (model: string) =>
new RegExp('/appdata/' + model + '/images/.*\\.png', 'g'),
Expand Down Expand Up @@ -294,6 +294,7 @@ export enum ModelIds {
GPT_4_32K_0613 = 'gpt-4-32k-0613',
GPT_4_VISION_PREVIEW = 'gpt-4-vision-preview',
GPT_4_O_2024_05_13 = 'gpt-4o-2024-05-13',
GPT_4_O_MINI_2024_07_18 = 'gpt-4o-mini-2024-07-18',
CHAT_BISON = 'chat-bison',
BISON_001 = 'chat-bison@001',
BISON_32k_002 = 'chat-bison-32k@002',
Expand Down
3 changes: 2 additions & 1 deletion apps/chat-e2e/src/tests/chatApi/arithmeticRequest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const modelsForArithmeticRequest: {
{ modelId: ModelIds.GPT_4_32K_0314, isSysPromptAllowed: true },
{ modelId: ModelIds.GPT_4_32K_0613, isSysPromptAllowed: true },
{ modelId: ModelIds.GPT_4_O_2024_05_13, isSysPromptAllowed: true },
{ modelId: ModelIds.GPT_4_O_MINI_2024_07_18, isSysPromptAllowed: true },
{ modelId: ModelIds.BISON_001, isSysPromptAllowed: true },
{ modelId: ModelIds.BISON_32k_002, isSysPromptAllowed: true },
{ modelId: ModelIds.CODE_BISON_001, isSysPromptAllowed: false },
Expand Down Expand Up @@ -60,7 +61,7 @@ for (const modelToUse of modelsForArithmeticRequest) {
const conversation = conversationData.prepareModelConversation(
0,
modelToUse.isSysPromptAllowed
? 'Answer arithmetic question. The answer should be number, do not use natural language'
? 'Evaluate the given arithmetic expression and return only the numerical result. Do not include any explanations, units, or additional text. Provide the answer in its simplest form, using scientific notation for very large or small numbers when appropriate. Support basic arithmetic operations (+, -, *, /), exponents (^), parentheses, and common mathematical functions (sqrt, sin, cos, tan, log, ln). Round the result to 6 decimal places if necessary'
: '',
[],
modelToUse.modelId,
Expand Down

0 comments on commit e2064c3

Please sign in to comment.