Why can't I access the 1M-token model context window when using the Azure API?

Open
#34,856 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
azure, rust
Domain
api, cloud

Research direction

The issue names no source file, test, or entry point and provides no reproduction steps. Start by locating where Azure API context limits are determined, then verify the supported 1M-token behavior and define tests for the expected client limit handling.

Written by the indexing model from the issue text.

Description

app azure context enhancement
What version of the Codex App are you using (From “About Codex” dialog)?

26.715.12143

What subscription do you have?

Azure PayGo

What platform is your computer?

Windows 11

What issue are you seeing?

The model’s context length should not be entirely controlled by the client. I use Codex because it’s a good product, but the backend I’m connected to is Azure OpenAI, which already supports a 1M-token context window. The client should not hard-code the context length and impose restrictions on my usage. I understand that requests exceeding 272K tokens may incur additional charges, but since I’m using a Pay-As-You-Go subscription, users like us should not be subject to such limitations.

What steps can reproduce the bug?

none

What is the expected behavior?

No response

Additional information

No response

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.