From 32a29303b59428e86727047fa112825201520281 Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Fri, 9 Aug 2024 10:26:40 +0200 Subject: [PATCH 1/2] Unbreak integration tests --- .github/workflows/integration-tests.yml | 1 + api_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 7260b00b4..95986dab4 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -4,6 +4,7 @@ on: push: branches: - master + pull_request: jobs: integration_tests: diff --git a/api_integration_test.go b/api_integration_test.go index a487f588a..3084268e6 100644 --- a/api_integration_test.go +++ b/api_integration_test.go @@ -211,7 +211,7 @@ func TestChatCompletionResponseFormat_JSONSchema(t *testing.T) { }, ResponseFormat: &openai.ChatCompletionResponseFormat{ Type: openai.ChatCompletionResponseFormatTypeJSONSchema, - JSONSchema: openai.ChatCompletionResponseFormatJSONSchema{ + JSONSchema: &openai.ChatCompletionResponseFormatJSONSchema{ Name: "cases", Schema: jsonschema.Definition{ Type: jsonschema.Object, From 39e362e9b75cda6c240f93adb3537e171d99c629 Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Fri, 9 Aug 2024 18:29:21 +0200 Subject: [PATCH 2/2] Update integration-tests.yml --- .github/workflows/integration-tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 95986dab4..7260b00b4 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -4,7 +4,6 @@ on: push: branches: - master - pull_request: jobs: integration_tests: