Skip to content

Commit 0cfeb4d

Browse files
committed
fix issues
1 parent e137f04 commit 0cfeb4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eval_protocol/auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ def get_fireworks_account_id() -> Optional[str]:
202202

203203
# 3) Fallback: if API key is present, attempt to resolve via verifyApiKey
204204
try:
205-
api_key_for_verify = get_fireworks_api_key()
205+
# IMPORTANT: Only consider API key from environment here to avoid re-reading files
206+
# which can cause duplicate Path.exists/_parse_simple_auth_file calls in tests and runtime.
207+
api_key_for_verify = os.environ.get("FIREWORKS_API_KEY")
206208
if api_key_for_verify:
207209
resolved = verify_api_key_and_get_account_id(api_key=api_key_for_verify, api_base=get_fireworks_api_base())
208210
if resolved:

0 commit comments

Comments
 (0)