Skip to content

Commit 2e69c50

Browse files
committed
fix: replace incorrect rstrip('/v1') with endswith check to prevent URL truncation; add English README
- rstrip('/v1') strips individual chars from the set {'/', 'v', '1'}, which silently corrupts URLs (e.g. api.openai.com -> api.openai.co). Replaced all 5 occurrences with proper endswith('/v1') suffix removal in config_routes, text_client, openai_compatible, and image_api modules. - Replace bare except clause with except Exception in history service. - Add README_EN.md and language toggle links for internationalization.
1 parent 4d48722 commit 2e69c50

7 files changed

Lines changed: 440 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<div align="center">
22

3+
**中文 | [English](./README_EN.md)**
4+
35
<img src="images/2.png" alt="红墨 - 灵感一触即发 让创作从未如此简单" width="600"/>
46

57
## 红墨官方站点上线啦,注册即送50体验积分!

0 commit comments

Comments
 (0)