Skip to content

Pls support context_management field 🙏 #154

Closed

Description

@RenxuLogan

Hi there! First of all, thank you so much for building and open-sourcing Olla.

Currently, when using Olla as an Anthropic proxy for the latest versions of Claude Code (v2.1.156+), the API request fails immediately with a 400 error.

This happens because Claude Code recently introduced a new field called context_management in its Anthropic JSON payload. Olla's strict JSON parser rejects the entire request because it doesn't recognize this unknown field.

Error Log from Claude Code:

"result":"API Error: 400 failed to parse Anthropic request: json: unknown field \"context_management\""

Right now, to even get Claude Code to connect to Olla, we must export a specific environment variable before running it:

export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1

Thank you so much for your time and help. Really appreciate your hard work on this project! 🚀

Activity

  1. added
    investigating
    on Jun 3, 2026
  2. self-assigned this
    on Jun 3, 2026
  3. added
    roadmap-feature
    llm-backend
    routing
    on Jun 4, 2026
  4. thushan commented on Jun 4, 2026

    @thushan
    Owner

    Thanks for reporting this, we initially blocked unknown fields due to a security audit for FoundryOS which Olla shares design/arch from, but later we realised this wasn't a valid concern.

    We'll address this in a coming release and remove the blocking of unknown fields etc and pass-through (as a proxy should).

  5. added
    roadmap-feature
    and removed
    roadmap-feature
    on Jun 4, 2026
  6. thushan commented on Jun 4, 2026

    @thushan
    Owner

    it's now merged to main, ready for the next release!

    Thanks for making Olla great for Claude Code users.

  7. added
    resolved
    security
    and removed
    investigating
    roadmap-feature
    on Jun 4, 2026
  8. petersimmons1972 commented on Jun 7, 2026

    @petersimmons1972

    Validated: maintainer confirmed merge in PR #157 ("fix: be lenient for anthropic parsing"). This issue appears complete; suggest closing if your hygiene policy closes post-merge resolved items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

llm-backendresolvedroutingsecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions