docs: 更新README中的协议关系图

将英文标签改为中文,简化内部转换逻辑部分的展示,使图表更清晰易读
This commit is contained in:
hex2077 2025-08-06 23:04:31 +08:00
parent 0d7a4649bc
commit d4b4b91b45

View file

@ -92,41 +92,36 @@ claude-kiro-oauth。
```mermaid ```mermaid
graph TD
subgraph Core_Protocols
P_OPENAI(OpenAI Protocol)
P_GEMINI(Gemini Protocol)
P_CLAUDE(Claude Protocol)
end
subgraph Supported_Model_Providers graph TD
MP_OPENAI[openai-custom] subgraph Core_Protocols["核心协议"]
MP_GEMINI[gemini-cli-oauth] P_OPENAI[OpenAI Protocol]
MP_CLAUDE_C[claude-custom] P_GEMINI[Gemini Protocol]
MP_CLAUDE_K[claude-kiro-oauth] P_CLAUDE[Claude Protocol]
end end
subgraph Internal_Conversion_Logic subgraph Supported_Model_Providers["支持的模型提供商"]
direction LR MP_OPENAI[openai-custom]
P_OPENAI <-->|Request/Response Conversion| P_GEMINI MP_GEMINI[gemini-cli-oauth]
P_OPENAI <-->|Request/Response Conversion| P_CLAUDE MP_CLAUDE_C[claude-custom]
P_GEMINI <-->|Request/Response Conversion| P_CLAUDE MP_CLAUDE_K[claude-kiro-oauth]
end end
P_OPENAI ---|Supports| MP_OPENAI P_OPENAI ---|支持| MP_OPENAI
P_OPENAI ---|Supports| MP_GEMINI P_OPENAI ---|支持| MP_GEMINI
P_OPENAI ---|Supports| MP_CLAUDE_C P_OPENAI ---|支持| MP_CLAUDE_C
P_OPENAI ---|Supports| MP_CLAUDE_K P_OPENAI ---|支持| MP_CLAUDE_K
P_GEMINI ---|Supports| MP_GEMINI P_GEMINI ---|支持| MP_GEMINI
P_CLAUDE ---|Supports| MP_CLAUDE_C P_CLAUDE ---|支持| MP_CLAUDE_C
P_CLAUDE ---|Supports| MP_CLAUDE_K P_CLAUDE ---|支持| MP_CLAUDE_K
P_CLAUDE ---|Supports| MP_GEMINI P_CLAUDE ---|支持| MP_GEMINI
style P_OPENAI fill:#f9f,stroke:#333,stroke-width:2px
style P_GEMINI fill:#ccf,stroke:#333,stroke-width:2px
style P_CLAUDE fill:#cfc,stroke:#333,stroke-width:2px
style P_OPENAI fill:#f9f,stroke:#333,stroke-width:2px
style P_GEMINI fill:#ccf,stroke:#333,stroke-width:2px
style P_CLAUDE fill:#cfc,stroke:#333,stroke-width:2px
``` ```
--- ---