Skip to content

feat: Support custom parameters in extra context#16

Merged
SilverRainZ merged 2 commits into
masterfrom
codex/extra-context-params
May 14, 2026
Merged

feat: Support custom parameters in extra context#16
SilverRainZ merged 2 commits into
masterfrom
codex/extra-context-params

Conversation

@SilverRainZ
Copy link
Copy Markdown
Member

ExtraContext.generate() now accepts *args, **kwargs, and load_extra() passes them through from the template. This enables parameterized extra contexts like load_extra('all_docs', count=3).

Changes:

  • ExtraContext.generate signature: (self, req, *args, **kwargs)
  • extra_context_loader forwards *args, **kwargs from the template
  • Built-in contexts updated to accept the new signature
  • New test root test-extra-context-params with all_docs example
  • Docs updated with working examples

Replace #15

SilverRainZ and others added 2 commits May 14, 2026 13:09
ExtraContext.generate() now accepts *args, **kwargs, and load_extra()
passes them through from the template. This enables parameterized
extra contexts like load_extra('all_docs', count=3).

Changes:
- ExtraContext.generate signature: (self, req, *args, **kwargs)
- extra_context_loader forwards *args, **kwargs from the template
- Built-in contexts updated to accept the new signature
- New test root test-extra-context-params with all_docs example
- Docs updated with working examples

Co-authored-by: deepseek-ai <service@deepseek.com>
@SilverRainZ SilverRainZ force-pushed the codex/extra-context-params branch from f0af96f to c1a6c37 Compare May 14, 2026 07:03
@SilverRainZ SilverRainZ merged commit 67962ee into master May 14, 2026
6 checks 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