Skip to content

Commit 146eb9c

Browse files
committed
发布b0.1.1 版本,更新 readme
1 parent 08ff516 commit 146eb9c

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<a href="https://fastapi.tiangolo.com"><img src="https://img.shields.io/badge/FastAPI-v0.115+-teal?style=flat-square"></a>
1515
<a href="https://gradio.app"><img src="https://img.shields.io/badge/Gradio-v5+-orange?style=flat-square"></a>
1616
<a href="#"><img src="https://img.shields.io/badge/SQLite-内置存储-lightgrey?style=flat-square"></a>
17+
<a href="https://pypi.org/project/openai-router/"><img src="https://img.shields.io/pypi/v/openai-router?style=flat-square&logo=pypi&label=PyPI"></a>
1718
</p>
1819

1920
---
@@ -26,20 +27,28 @@
2627
| 💾 持久化 | SQLite + SQLModel 零配置存储路由 |
2728
| ⚡ 实时流 | SSE & Chunked Transfer 全双工支持 |
2829
| 🎨 Web UI | Gradio 即用的管理面板 |
29-
| 🔍 兼容 OpenAI | SDK / LangChain / AutoGen 等无需改动一行代码 |
30+
| 🔍 兼容 OpenAI | SDK / LangChain / AutoGen / LlamaIndex / CrewAI …等 **一行代码都不用改** |
3031

3132
---
3233

33-
### 📦 Quick Start
34-
Step-1:安装
34+
## 📦 Quick Start
35+
### Step-1:安装
36+
37+
#### PyPI(推荐)
38+
3539
```bash
36-
uv sync
40+
uv add openai-router -U
3741
```
42+
或者
43+
```bash
44+
pip install openai-router -U
45+
```
46+
3847

3948

40-
Step-2:启动
49+
### Step-2:启动
4150
```bash
42-
python -m openai_router.main --host localhost --port 8000
51+
openai-router --host localhost --port 8000
4352
```
4453
浏览器自动打开
4554
📍 UI:`http://localhost:8000`

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openai-router"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "openai-router"
55
readme = "README.md"
66
requires-python = ">=3.11"
@@ -14,7 +14,7 @@ dependencies = [
1414
]
1515

1616
[project.scripts]
17-
openai_router = "openai_router.main:cli_app"
17+
openai-router = "openai_router.main:cli_app"
1818

1919
[[tool.uv.index]]
2020
url = "https://pypi.org/simple/"

0 commit comments

Comments
 (0)