diff --git a/functions/src/api/gemini.api.test.ts b/functions/src/api/gemini.api.test.ts index b820cc07d..7409be73c 100644 --- a/functions/src/api/gemini.api.test.ts +++ b/functions/src/api/gemini.api.test.ts @@ -140,7 +140,11 @@ describe('Gemini API', () => { enum: ['FOO', 'BAR', 'BAZ'], }, }, - propertyOrdering: ['stringProperty', 'integerProperty', 'enumProperty'], + propertyOrdering: [ + 'stringProperty', + 'integerProperty', + 'enumProperty', + ], required: ['stringProperty', 'integerProperty', 'enumProperty'], }, }, diff --git a/functions/src/api/openai.api.test.ts b/functions/src/api/openai.api.test.ts index f882e6381..3a5c16773 100644 --- a/functions/src/api/openai.api.test.ts +++ b/functions/src/api/openai.api.test.ts @@ -116,13 +116,13 @@ describe('OpenAI-compatible API', () => { }, }, { - name: 'enumProperty', - schema: { - type: StructuredOutputDataType.ENUM, - description: 'An enum-valued property', - enumItems: ['FOO', 'BAR', 'BAZ'], + name: 'enumProperty', + schema: { + type: StructuredOutputDataType.ENUM, + description: 'An enum-valued property', + enumItems: ['FOO', 'BAR', 'BAZ'], + }, }, - }, ], }, }); @@ -156,9 +156,9 @@ describe('OpenAI-compatible API', () => { description: 'An integer-valued property', }, enumProperty: { - type: 'STRING', - description: 'An enum-valued property', - enum: ['FOO', 'BAR', 'BAZ'], + type: 'STRING', + description: 'An enum-valued property', + enum: ['FOO', 'BAR', 'BAZ'], }, }, additionalProperties: false,