CSCfi / CSCfi/ai-inference-examples

API key cannot be empty in vllm_client.py

Open Beginner friendly
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.