Skip to content

test(llm): add build_request integration test for extended context enabled path#1749

Merged
bug-ops merged 2 commits intomainfrom
test-llm-build-request-ext
Mar 14, 2026
Merged

test(llm): add build_request integration test for extended context enabled path#1749
bug-ops merged 2 commits intomainfrom
test-llm-build-request-ext

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 14, 2026

Summary

  • Adds build_request_with_extended_context_includes_beta_header test in crates/zeph-llm/src/claude.rs
  • Constructs ClaudeProvider with enable_extended_context = true, calls build_request(), asserts the anthropic-beta HTTP header contains context-1m-2025-08-07
  • Complements the existing disabled-path test build_request_does_not_include_anthropic_beta_header

Closes #1687

Test plan

  • cargo nextest run -p zeph-llm -E 'test(build_request_with_extended_context)' passes
  • cargo clippy --workspace --features full -- -D warnings clean
  • cargo +nightly fmt --check clean
  • Full workspace test suite: 5428 passed

bug-ops added 2 commits March 14, 2026 14:59
…abled path

Adds build_request_with_extended_context_includes_beta_header test that
constructs a ClaudeProvider with enable_extended_context = true, calls
build_request(), and asserts the anthropic-beta header contains the
context-1m-2025-08-07 token. Complements the existing disabled-path test.

Closes #1687
@github-actions github-actions bot added documentation Improvements or additions to documentation llm zeph-llm crate (Ollama, Claude) rust Rust code changes tests Test-related changes size/S Small PR (11-50 lines) labels Mar 14, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 14, 2026 14:01
@bug-ops bug-ops merged commit 70b6a2b into main Mar 14, 2026
15 checks passed
@bug-ops bug-ops deleted the test-llm-build-request-ext branch March 14, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation llm zeph-llm crate (Ollama, Claude) rust Rust code changes size/S Small PR (11-50 lines) tests Test-related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(llm): add build_request integration test for extended context enabled path

1 participant