Files
cc-switch/src-tauri/src
T
YoVinchen 55301abc00 refactor(proxy): extract format transform into standalone module
- Create new `proxy/transform/` module with clean architecture:
  - `traits.rs`: FormatTransformer trait definition
  - `format.rs`: ApiFormat enum (Anthropic, OpenAI, Gemini)
  - `registry.rs`: TransformerRegistry with global instance
  - `config.rs`: TransformConfig from Provider settings
  - `anthropic_openai/`: Bidirectional Anthropic ↔ OpenAI converters

- Move streaming transform from providers/ to transform/
- Remove legacy transform code from providers/adapter.rs and claude.rs
- Update handlers.rs to use new transform module

This refactor improves maintainability and makes it easier to add
new format converters in the future.
55301abc00 · 2026-01-25 19:37:30 +08:00
History
..
2026-01-11 20:50:54 +08:00
2025-12-31 22:57:00 +08:00
2026-01-20 21:02:44 +08:00
2025-11-22 19:18:35 +08:00
2025-12-05 11:26:41 +08:00