Remove OPENAI_API_KEY from recorded (playback) test steps#969
Remove OPENAI_API_KEY from recorded (playback) test steps#969
Conversation
Co-authored-by: joseharriaga <45773732+joseharriaga@users.noreply.github.com>
|
@copilot Looking at the workflow runs for this PR, it looks like several of the Responses tests failed. They all have the same error in common: "Incorrect API key provided". Based on this error, it sounds like the tests were attempted to run in live mode rather than in playback mode, and because there is not API key available, the live service returned an error which makes sense. We must fix these tests to run fully in playback mode. By the looks of it, the problem is that these tests are calling |
…lient Co-authored-by: joseharriaga <45773732+joseharriaga@users.noreply.github.com>
Fixed in 6bacd1f. Replaced all 7 |
OPENAI_API_KEYenv var from "Run recorded tests" step in.github/workflows/live-test.ymlOPENAI_API_KEYenv var from "Run recorded tests" step in.github/workflows/release.ymlResponsesTests.cs: replace 3TestEnvironment.GetTestClient<ResponsesClient>calls withGetProxiedOpenAIClient<ResponsesClient>ResponsesToolTests.cs: replace 4TestEnvironment.GetTestClient<ResponsesClient>calls withGetProxiedOpenAIClient<ResponsesClient>🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.