Commit Graph

8 Commits

Author SHA1 Message Date
mmc
d9fec3fd74 fix: trace tool forwarding decisions
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 06:12:21 +08:00
GitHub Actions
109c34a8dc refactor: share request execution lifecycle
Extract the shared request startup, completion, and cleanup flow so OpenAI and Anthropic routes keep the same wire behavior with less duplicated orchestration.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-23 18:44:40 +08:00
GitHub Actions
8b012310a2 refactor: extract tooling policy helpers
Move tool allowlist, tool_config, and tooling-context helpers into app/http/tooling_policy.py while keeping route behavior unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 11:37:50 +08:00
GitHub Actions
e3d3a63492 refactor: extract OpenAI Responses route wrapper
Keep app.main.v1_responses as the compatibility entrypoint while moving the Responses wrapper and SSE bridge into a dedicated module. This reduces app/main.py without changing the existing Responses behavior or test patch points.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 10:13:49 +08:00
GitHub Actions
b479294af4 refactor: share streaming tool event normalization
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 08:07:44 +08:00
GitHub Actions
aac6e2785d refactor: share non-stream tool event normalization
Deduplicate allowlist filtering and forced-tool fallback parsing across the OpenAI and Anthropic non-stream bridge paths while preserving existing wire behavior.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 07:53:26 +08:00
GitHub Actions
5a7553b35b refactor: share execution prep for tool-call phase
Keep the current tool-call bridge contract stable while extracting shared
execution setup and tightening Anthropic forwarding regressions.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 07:39:33 +08:00
GitHub Actions
0e146e60d9 refactor: extract Phase 1 gateway helpers
Move tool bridge and responses adapter helpers out of app.main so the main entrypoint can shrink without changing route orchestration behavior.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 08:05:09 +08:00