fix: openai filtering

This commit is contained in:
Timothy J. Baek 2024-02-27 20:08:57 -08:00
parent a36627cbce
commit 59ae5b6d34
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ async def proxy(path: str, request: Request, user=Depends(get_verified_user)):
response_data = r.json()
if "openai" in app.state.OPENAI_API_BASE_URL and path == "models":
if "api.openai.com" in app.state.OPENAI_API_BASE_URL and path == "models":
response_data["data"] = list(
filter(lambda model: "gpt" in model["id"], response_data["data"])
)