DOC: <Issue related to /prompt_engineering/how_to_guides/custom_openai_compliant_model> #71

Closed
opened 2026-02-21 17:17:07 -05:00 by yindo · 0 comments
Owner

Originally created by @farouk09 on GitHub (May 6, 2025).

I'm running a VLLM server on port 8080 and trying to integrate it with the LangSmith provider. However, I keep encountering the following error:

ConnectError: All connection attempts failed

Here is the configuration I'm using ( provider options : http://localhost:8080/v1/completions, and even http://localhost:8080/v1 did not work):

Image

Interestingly, when I test the same VLLM server using the openai Python client, everything works as expected:

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:8080/v1",
    api_key="token-abc123",
)

completion = client.chat.completions.create(
  model="jpacifico/Chocolatine-2-14B-Instruct-v2.0.3",
  messages=[
    {"role": "user", "content": "Hello!"}
  ]
)

print(completion.choices[0].message)

Any idea what might be causing the connection issue with LangSmith?

Originally created by @farouk09 on GitHub (May 6, 2025). I'm running a VLLM server on port 8080 and trying to integrate it with the LangSmith provider. However, I keep encountering the following error: `ConnectError: All connection attempts failed ` Here is the configuration I'm using ( provider options : http://localhost:8080/v1/completions, and even http://localhost:8080/v1 did not work): <img width="745" alt="Image" src="https://github.com/user-attachments/assets/f8b796e6-6a76-42cd-bf32-bfa9c82d757a" /> Interestingly, when I test the same VLLM server using the openai Python client, everything works as expected: ``` from openai import OpenAI client = OpenAI( base_url="http://localhost:8080/v1", api_key="token-abc123", ) completion = client.chat.completions.create( model="jpacifico/Chocolatine-2-14B-Instruct-v2.0.3", messages=[ {"role": "user", "content": "Hello!"} ] ) print(completion.choices[0].message) ``` Any idea what might be causing the connection issue with LangSmith?
yindo closed this issue 2026-02-21 17:17:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langsmith-docs#71