Skip to content

Commit 9b6a33f

Browse files
add custom VLLM endpoitn url (#306)
1 parent da8cb7c commit 9b6a33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agentlab/llm/chat_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def __init__(
479479
min_retry_wait_time=min_retry_wait_time,
480480
api_key_env_var="VLLM_API_KEY",
481481
client_class=OpenAI,
482-
client_args={"base_url": "http://0.0.0.0:8000/v1"},
482+
client_args={"base_url": os.getenv("VLLM_API_URL", "http://localhost:8000/v1")},
483483
pricing_func=None,
484484
)
485485

0 commit comments

Comments
 (0)