Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #92 from marov/master
Browse files Browse the repository at this point in the history
fix: no attribute 'set_url'
  • Loading branch information
sihanwang41 authored Nov 15, 2023
2 parents ae910a2 + 3eb6892 commit 335e688
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rayllm/frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ def noop(*args, **kwargs):
)
port = ray.get(controller.get_http_config.remote()).port

blocks._queue.set_url(f"http://localhost:{port}{route_prefix}/")
blocks._queue.set_url = noop
blocks._queue.set_url(f"http://localhost:{port}{route_prefix}/")


app = AviaryFrontend.options(
Expand All @@ -495,7 +495,11 @@ def noop(*args, **kwargs):
"env_vars": {
k: v
for k, v in os.environ.items()
if k.startswith("AVIARY") or k.startswith("OPENAI")
if (
k.startswith("AVIARY")
or k.startswith("OPENAI")
or k.startswith("MONGO")
)
}
},
},
Expand Down

0 comments on commit 335e688

Please sign in to comment.