Skip to content

Update to use Azure OpenAI API - #29

Closed
carloshm wants to merge 1 commit into
openai:mainfrom
carloshm:use-azure-openai
Closed

carloshm wants to merge 1 commit into
openai:mainfrom
carloshm:use-azure-openai

Conversation

@carloshm

Copy link
Copy Markdown
  • codex-cli/src/cli.tsx

    • Update import statement to use @azure/openai package.
    • Replace OPENAI_API_KEY with AZURE_OPENAI_API_KEY.
    • Add AZURE_OPENAI_ENDPOINT environment variable.
    • Update OpenAI client initialization to use Azure OpenAI API key and endpoint.
  • codex-cli/examples/build-codex-demo/task.yaml

    • Update description to reflect use of Azure OpenAI.
    • Replace OpenAI API key with Azure OpenAI API key.
    • Update API call example to use Azure OpenAI SDK.

* **`codex-cli/src/cli.tsx`**
  - Update import statement to use `@azure/openai` package.
  - Replace `OPENAI_API_KEY` with `AZURE_OPENAI_API_KEY`.
  - Add `AZURE_OPENAI_ENDPOINT` environment variable.
  - Update OpenAI client initialization to use Azure OpenAI API key and endpoint.

* **`codex-cli/examples/build-codex-demo/task.yaml`**
  - Update description to reflect use of Azure OpenAI.
  - Replace OpenAI API key with Azure OpenAI API key.
  - Update API call example to use Azure OpenAI SDK.
@carloshm carloshm closed this Apr 16, 2025
@carloshm
carloshm deleted the use-azure-openai branch April 16, 2025 18:00
friel-openai referenced this pull request in friel-openai/codex Sep 16, 2026
## Summary

Advance the Saffrodex projection from Codex
`rust-v0.154.0-alpha.6.1` to the stable `rust-v0.154.0` release.

Refresh every canonical layer against the selected Codex tree and its
predecessors. The generated layer bytes remain unchanged because the
full
stack applies cleanly to the new base.

## Testing

A depth-one canonical clone fetched only the configured Codex tag at
depth
one, then applied all ten layers successfully:

    go run ./cmd/layerctl check

Projected Codex tests remain the pull request CI gate.
jiangshengdev added a commit to jiangshengdev/codex that referenced this pull request Sep 17, 2026
soddygo added a commit to nuwax-ai/codex that referenced this pull request Sep 24, 2026
External review (44 findings) triage — these 7 confirmed items fixed:

- openai#22 codex-config and codex-core TEST targets had 11 compile errors
  (ModelProviderInfo literals missing experimental_bridge; a WireApi
  match missing Anthropic). All patched; test targets now compile under
  no/single/both bridge features.
- openai#9 MCP flat-name resolution was DEAD in the production dispatch path:
  router.rs wraps the bridge's namespace-less flat name with
  with_default_namespace() BEFORE registry lookup, so the fallback's
  namespace.is_none() guard never fired — MCP tools were unresolvable
  via the chat bridges in real usage. The original unit test called
  registry.tool() directly with a plain name, bypassing the router (a
  false green). Fix: the fallback now resolves through the flat index
  regardless of the incoming namespace (safe: the index only contains
  namespaced tools, which the exact-key lookup already missed); new
  regression test drives the router-wrapped form.
- openai#8 Both bridges synthesized fixed txt_0/rsn_0 item IDs every turn;
  retained assistant history dedupes by ID, so each new message
  REPLACED the previous one. IDs now carry a per-turn unique suffix
  (nanos + counter).
- openai#31 The nextest live-test config never applied: it sat at the
  repository root (cargo workspace — and thus nextest config lookup —
  is rooted at codex-rs/) AND used invalid syntax ([[test-group]],
  group=). Merged into codex-rs/.config/nextest.toml with the official
  [test-groups.<name>] tables and test-group = override keys, per-test
  slow-timeout/retries with exponential backoff, and the ci profile the
  workflow references; config parse verified. Corollary: the earlier
  "per-vendor groups fixed rate limiting" claim was unfounded — the
  observed retries came from upstream's default retries=1.
- openai#29 Cassette replay fell back to LIVE on missing/corrupt fixtures,
  silently consuming vendor quota in declared-offline runs; now fails
  fast with the record hint.
- openai#30 The nightly workflow passed only API keys — vendors() skips
  entries without URLs/models, so every scenario would silently skip.
  The workflow now passes complete per-vendor config and fails when no
  vendor tests are listed.
- openai#35 The marker assertion matched the raw JSON line (the command
  string contains the marker too), so broken stdout capture could
  still pass; now parses the completed event and asserts the
  aggregated_output field specifically.

Verified: full live matrix 64/64 (mimo+glm+step), offline replay
43/43 with credentials removed, rig bridge units 18/18, config/core
test targets compile.
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