mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-02 01:20:23 +08:00
Refactored all 11 providers to use the resolveBaseURL() utility function instead of inline ternary expressions. This ensures: 1. The security fix is centralized in one testable function 2. Unit tests actually validate the production code path 3. Future changes only need to modify one location Providers refactored: openai, anthropic, google, azure, openrouter, deepseek, siliconflow, sglang, gateway, doubao, modelscope