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
The AI Proxy will be deprecated soon, and the AI Gateway is being
continually updated with bug fixes and new features, and so we should
move this repository to use that.
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,24 +101,24 @@ import { Factuality } from "autoevals";
101
101
102
102
## Using other AI providers
103
103
104
-
When you use Autoevals, it will look for an `OPENAI_BASE_URL` environment variable to use as the base for requests to an OpenAIcompatible API. If `OPENAI_BASE_URL` is not set, it will default to the [AI proxy](https://www.braintrust.dev/docs/guides/proxy).
104
+
When you use Autoevals, it will look for an `OPENAI_BASE_URL` environment variable to use as the base for requests to an OpenAI-compatible API. If `OPENAI_BASE_URL` is not set, it will look for a `BRAINTRUST_AI_GATEWAY_URL` environment variable and then default to the [Braintrust Gateway](https://www.braintrust.dev/docs/deploy/gateway).
105
105
106
-
If you choose to use the proxy, you'll also get:
106
+
When you use the Braintrust Gateway, you'll also get:
107
107
108
108
- Simplified access to many AI providers
109
109
- Reduced costs with automatic request caching
110
110
- Increased observability when you enable logging to Braintrust
111
111
112
-
The proxy is free to use, even if you don't have a Braintrust account.
112
+
The Braintrust-hosted Gateway is free to use while it is in beta.
113
113
114
-
If you have a Braintrust account, you can optionally set the `BRAINTRUST_API_KEY` environment variable instead of `OPENAI_API_KEY`to unlock additional features like logging and monitoring. You can also route requests to [supported AI providers and models](https://www.braintrust.dev/docs/guides/proxy#supported-models) or custom models you have configured in Braintrust.
114
+
Set the `BRAINTRUST_API_KEY` environment variable to authenticate Gateway requests. You can also route requests to supported AI providers and models or custom models you have configured in Braintrust.
115
115
116
116
<divclassName="tabs">
117
117
118
118
### Python
119
119
120
120
```python
121
-
#NOTE: ensure BRAINTRUST_API_KEY is set in your environment and OPENAI_API_KEY is not set
121
+
#NOTE: ensure BRAINTRUST_API_KEY is set in your environment
122
122
from autoevals.llm import*
123
123
124
124
# Create an LLM-based evaluator using the Claude 3.5 Sonnet model from Anthropic
0 commit comments