API key cannot be empty in vllm_client.py

Open Beginner friendly
#11 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
api

Research direction

Start in vllm_client.py at the openai.OpenAI client initialization shown in the issue, and reproduce the behavior against the local http://localhost/v1 endpoint. Trace how the API key is supplied and verify that the client works with an empty key while preserving authenticated usage; the relevant client behavior should be covered by a focused test if the repository provides one.

Written by the indexing model from the issue text.

Description

Just a minor issue but api key in vllm_client.py cannot be empty string. Any value will do but must have value.

client = openai.OpenAI(
api_key='', # must have something
base_url='http://localhost/v1',
http_client=httpx_client
)

Tested on Roihu.

Dominant language
Shell
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.