test: add an opt-in live Responses API test - #12
Merged
TheGreatAxios merged 1 commit intoSep 27, 2026
Conversation
TheGreatAxios
commented
Sep 25, 2026
TheGreatAxios
left a comment
Contributor
Author
There was a problem hiding this comment.
Reviewed the full diff. Gating skips without OPENAI_API_KEY and under CI; tests/ is typechecked and linted but excluded from the build. Live path not run locally (no key). No findings.
TheGreatAxios
force-pushed
the
cl-9256-openai-responses-add-env-gated-live-responses-api-test
branch
from
September 25, 2026 06:01
f0830f1 to
bce21be
Compare
Contributor
Author
|
Independent review findings addressed and force-pushed: commit message reworded, empty OPENAI_API_KEY now skips, header comment corrected. check passes. |
TheGreatAxios
force-pushed
the
cl-9256-openai-responses-add-env-gated-live-responses-api-test
branch
from
September 25, 2026 17:29
fac8216 to
d9767cb
Compare
TheGreatAxios
force-pushed
the
cl-9256-openai-responses-add-env-gated-live-responses-api-test
branch
from
September 25, 2026 22:48
d9767cb to
e8b1e22
Compare
TheGreatAxios
changed the base branch from
main
to
cl-9225-openai-responses-align-eslintjititypescript-toolchain-with
September 25, 2026 22:48
This was referenced Sep 25, 2026
Run one streamed text turn and one tool call through runInference against the server named by OPENAI_RESPONSES_LIVE_URL, which can be api.openai.com or any Responses-compatible server such as Ollama's /v1. The suite skips unless that variable is set, so a stray OPENAI_API_KEY never triggers paid calls. The test root and typecheck include widen to cover the new tests directory.
TheGreatAxios
force-pushed
the
cl-9256-openai-responses-add-env-gated-live-responses-api-test
branch
from
September 26, 2026 01:33
e8b1e22 to
3f62f73
Compare
TheGreatAxios
added this pull request to stack #19
September 26, 2026 01:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/live.test.ts: one streamed text turn and one tool call throughrunInferenceagainst any Responses-compatible server.OPENAI_RESPONSES_LIVE_URLis set.OPENAI_RESPONSES_LIVE_KEY(default placeholder) andOPENAI_RESPONSES_LIVE_MODEL(default gpt-5-mini) are optional. A strayOPENAI_API_KEYnever triggers paid calls.tests/; the build still compilessrconly.Verification
bun run check: 36 pass, 2 skip, 0 fail.OPENAI_RESPONSES_LIVE_URL=http://<ollama>/v1 OPENAI_RESPONSES_LIVE_MODEL=qwen2.5:14b bun test tests/live.test.ts: 2 pass. Not run against api.openai.com (no key).Closes CL-9256