judgeval 0.0.38__py3-none-any.whl → 0.0.40__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
judgeval/clients.py CHANGED
@@ -23,10 +23,12 @@ together_client: Optional['Together'] = None
23
23
  async_together_client: Optional['AsyncTogether'] = None
24
24
 
25
25
  # Only initialize Together clients if API key is available
26
- if os.getenv("TOGETHERAI_API_KEY"):
26
+
27
+ together_api_key = os.getenv("TOGETHERAI_API_KEY") or os.getenv("TOGETHER_API_KEY")
28
+ if together_api_key:
27
29
  try:
28
- together_client = Together(api_key=os.getenv("TOGETHERAI_API_KEY"))
29
- async_together_client = AsyncTogether(api_key=os.getenv("TOGETHERAI_API_KEY"))
30
- except Exception:
30
+ together_client = Together(api_key=together_api_key)
31
+ async_together_client = AsyncTogether(api_key=together_api_key)
32
+ except Exception as e:
31
33
  pass
32
34