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
???DON'T THEY NEED TO INSRALL BROWSERBASE STAGEHAND TOO?
38
-
39
37
Install the necessary dependencies:
40
38
```bash
41
39
npm ci
@@ -172,8 +170,6 @@ You can use AI Gateway with both Workers AI and third-party models.
172
170
173
171
To use AI Gateway, first create a gateway in the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers/ai-gateway), then add the `baseURL` as shown below.
174
172
175
-
???I SWITCHED THE ORDER AROUND. WE SHOULD FIRST SHOW AI GATEWAY WHILE STILL USING WORKERS AI
176
-
177
173
```typescript
178
174
const stagehand =newStagehand({
179
175
env: "LOCAL",
@@ -189,8 +185,6 @@ const stagehand = new Stagehand({
189
185
190
186
You can configure Stagehand to use models from third-party providers, including OpenAI or Anthropic, by providing your own credentials.
191
187
192
-
???DOES THIS ONLY WORK WITH CERTAIN PROVIDERS? ONLY MODELS THAT AIGATEWAY SUPPORTS?
193
-
194
188
In this example, you will configure Stagehand to use [OpenAI](https://openai.com/). You will need an OpenAI API key. Cloudflare recommends storing your API key as a [secret](/workers/configuration/secrets/).
0 commit comments