Skip to content

vLLM Provider lacks v1 url #2580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hbai98 opened this issue Apr 22, 2025 · 0 comments
Open

vLLM Provider lacks v1 url #2580

hbai98 opened this issue Apr 22, 2025 · 0 comments

Comments

@hbai98
Copy link

hbai98 commented Apr 22, 2025

When setting
export VLLM_API_BASE="http://0.0.0.0:8888" # Run the Letta server (usually on a different port) poetry run letta server --host 0.0.0.0 --port 80 # Add --ade if needed for development

or export VLLM_API_BASE="http://localhost:8283, the vLLM model can't be found.

To resolve it, adding a suffix like 'export VLLM_API_BASE="http://0.0.0.0:8888/v1', benefits finding the models available and latter functions' calls.

It may be helpful to set up like:

# Attempt to enable LM Studio by default
if model_settings.lmstudio_base_url:
# Auto-append v1 to the base URL
lmstudio_url = (
model_settings.lmstudio_base_url
if model_settings.lmstudio_base_url.endswith("/v1")
else model_settings.lmstudio_base_url + "/v1"

For adding this suffix automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant