Skip to content

test: add an opt-in live Responses API test - #12

Merged
TheGreatAxios merged 1 commit into
cl-9225-openai-responses-align-eslintjititypescript-toolchain-withfrom
cl-9256-openai-responses-add-env-gated-live-responses-api-test
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9225-openai-responses-align-eslintjititypescript-toolchain-withfrom
cl-9256-openai-responses-add-env-gated-live-responses-api-test

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds tests/live.test.ts: one streamed text turn and one tool call through runInference against any Responses-compatible server.
  • Skips unless OPENAI_RESPONSES_LIVE_URL is set. OPENAI_RESPONSES_LIVE_KEY (default placeholder) and OPENAI_RESPONSES_LIVE_MODEL (default gpt-5-mini) are optional. A stray OPENAI_API_KEY never triggers paid calls.
  • Widens the bunfig test root and tsconfig include to cover tests/; the build still compiles src only.
  • Stacked on build: align eslint, jiti, prettier and typescript toolchain versions #10.

Verification

  • bun run check: 36 pass, 2 skip, 0 fail.
  • Live against remote Ollama: 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

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
TheGreatAxios force-pushed the cl-9256-openai-responses-add-env-gated-live-responses-api-test branch from f0830f1 to bce21be Compare September 25, 2026 06:01
@TheGreatAxios

Copy link
Copy Markdown
Contributor Author

Independent review findings addressed and force-pushed: commit message reworded, empty OPENAI_API_KEY now skips, header comment corrected. check passes.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9256-openai-responses-add-env-gated-live-responses-api-test branch from fac8216 to d9767cb Compare September 25, 2026 17:29
@TheGreatAxios TheGreatAxios changed the title test: add env-gated live Responses API test test: add opt-in live Responses API test Sep 25, 2026
@TheGreatAxios
TheGreatAxios force-pushed the cl-9256-openai-responses-add-env-gated-live-responses-api-test branch from d9767cb to e8b1e22 Compare September 25, 2026 22:48
@TheGreatAxios
TheGreatAxios changed the base branch from main to cl-9225-openai-responses-align-eslintjititypescript-toolchain-with September 25, 2026 22:48
@TheGreatAxios TheGreatAxios changed the title test: add opt-in live Responses API test Add an opt-in live Responses API test 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
TheGreatAxios force-pushed the cl-9256-openai-responses-add-env-gated-live-responses-api-test branch from e8b1e22 to 3f62f73 Compare September 26, 2026 01:33
@TheGreatAxios TheGreatAxios changed the title Add an opt-in live Responses API test test: add an opt-in live Responses API test Sep 26, 2026
@TheGreatAxios
TheGreatAxios added this pull request to stack #19 September 26, 2026 01:58
@TheGreatAxios
TheGreatAxios merged commit 161f815 into main Sep 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant