Skip to content

Commit 1ab7d0c

Browse files
committed
fix(readme): proxy for models and other passthrough calls
1 parent fb5c0d6 commit 1ab7d0c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pip install open-responses-server
5454
Or install from source:
5555

5656
```
57+
pip install uv
5758
uv venv
5859
uv pip install .
5960
uv pip install -e ".[dev]" # dev dependencies

src/open_responses_server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ async def stream_proxy():
12951295
async with httpx.AsyncClient(timeout=60.0) as client:
12961296
async with client.stream(
12971297
request.method,
1298-
f"{OPENAI_BASE_URL_INTERNAL}/v1/{path_name}", # Add /v1 here
1298+
f"{OPENAI_BASE_URL_INTERNAL}/{path_name}",
12991299
headers=headers,
13001300
content=body,
13011301
timeout=60.0

test_tools/call_models.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
curl https://api.openai.com/v1/models -s \
3+
-H "Content-Type: application/json" \
4+
-H "Authorization: Bearer ${OPENAI_API_KEY}" | jq

0 commit comments

Comments
 (0)