We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e137f04 commit 0cfeb4dCopy full SHA for 0cfeb4d
eval_protocol/auth.py
@@ -202,7 +202,9 @@ def get_fireworks_account_id() -> Optional[str]:
202
203
# 3) Fallback: if API key is present, attempt to resolve via verifyApiKey
204
try:
205
- api_key_for_verify = get_fireworks_api_key()
+ # 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")
208
if api_key_for_verify:
209
resolved = verify_api_key_and_get_account_id(api_key=api_key_for_verify, api_base=get_fireworks_api_base())
210
if resolved:
0 commit comments