Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Sep 1, 2024
1 parent d41d70a commit d7fa2e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion olah/proxy/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ async def meta_generator(
yield item
else:
async for item in _meta_proxy_generator(
app, headers, meta_url, allow_cache, method, save_path
app, headers, meta_url, method, allow_cache, save_path
):
yield item
4 changes: 2 additions & 2 deletions olah/proxy/pathsinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ async def _pathsinfo_proxy(
app: FastAPI,
headers: Dict[str, str],
pathsinfo_url: str,
allow_cache: bool,
method: str,
path: str,
allow_cache: bool,
save_path: str,
):
headers = {k: v for k, v in headers.items()}
Expand Down Expand Up @@ -94,7 +94,7 @@ async def pathsinfo_generator(
status, headers, content = await _pathsinfo_cache(save_path)
else:
status, headers, content = await _pathsinfo_proxy(
app, headers, pathsinfo_url, allow_cache, method, path, save_path
app, headers, pathsinfo_url, method, path, allow_cache, save_path
)

try:
Expand Down
4 changes: 2 additions & 2 deletions olah/proxy/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ async def _tree_proxy_generator(
app: FastAPI,
headers: Dict[str, str],
tree_url: str,
allow_cache: bool,
method: str,
recursive: bool,
allow_cache: bool,
save_path: str,
):
async with httpx.AsyncClient(follow_redirects=True) as client:
Expand Down Expand Up @@ -102,6 +102,6 @@ async def tree_generator(
yield item
else:
async for item in _tree_proxy_generator(
app, headers, tree_url, allow_cache, method, recursive, save_path
app, headers, tree_url, method, recursive, allow_cache, save_path
):
yield item
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = [
dependencies = [
"fastapi", "fastapi-utils", "httpx", "numpy", "pydantic<=2.8.2", "pydantic-settings<=2.4.0", "requests", "toml",
"rich>=10.0.0", "shortuuid", "uvicorn", "tenacity>=8.2.2", "pytz", "cachetools", "GitPython",
"PyYAML", "typing_inspect>=0.9.0", "huggingface_hub", "jinja2"
"PyYAML", "typing_inspect>=0.9.0", "huggingface_hub", "jinja2", "python-multipart"
]

[project.optional-dependencies]
Expand Down

0 comments on commit d7fa2e3

Please sign in to comment.