You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c5f286
Browse filesBrowse the repository at this point in the historyBrowse files
feat: enhance evaluate() with environment variable support
- Make api_key parameter optional (reads from HONEYHIVE_API_KEY or HH_API_KEY)
- Add server_url parameter with env var support (HONEYHIVE_SERVER_URL, HH_SERVER_URL, HH_API_URL)
- Support both HONEYHIVE_* and HH_* prefix variations for better UX
- Update run_experiment() to accept optional api_key
- Add comprehensive unit tests for environment variable fallback
- Improve documentation with environment variable usage
Copy file name to clipboardExpand all lines: docs/reference/index.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ Core Capabilities
37
37
**Evaluation Framework**:
38
38
39
39
- **@evaluate Decorator**: Automatic evaluation of function outputs with built-in and custom evaluators
40
+
- **Environment Variable Support**: Optional ``api_key`` and ``server_url`` parameters with automatic fallback to environment variables (``HONEYHIVE_API_KEY``/``HH_API_KEY`` and ``HONEYHIVE_SERVER_URL``/``HH_SERVER_URL``/``HH_API_URL``)
40
41
- **Batch Evaluation**: Evaluate multiple outputs simultaneously with threading support
41
42
- **Async Evaluations**: Full async support for evaluation workflows
0 commit comments