Skip to content

Allow runs to localhost#342

Merged
xzrderek merged 1 commit intoeval-protocol:mainfrom
aidando73:aidand-allow-local-runs
Nov 28, 2025
Merged

Allow runs to localhost#342
xzrderek merged 1 commit intoeval-protocol:mainfrom
aidando73:aidand-allow-local-runs

Conversation

@aidando73
Copy link
Contributor

Use case is - a bit more convenient to run locally vs via build + deployment + github action


api_base = os.getenv("EP_LLM_API_BASE") or os.getenv("EP_LLM_BASE_URL")
if api_base and "api_base" not in request_params:
request_params["api_base"] = api_base
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Environment variable ignored when config has falsy api_base

The check "api_base" not in request_params prevents environment variables from being used when config.completion_params contains api_base with a falsy value like "" or None. This means if someone has an empty or null api_base in their config, the environment variables EP_LLM_API_BASE or EP_LLM_BASE_URL won't override it. The condition should check not request_params.get("api_base") to allow environment variables to override falsy config values.

Fix in Cursor Fix in Web

@xzrderek xzrderek merged commit 79e3686 into eval-protocol:main Nov 28, 2025
5 of 9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants