@@ -61,29 +61,38 @@ If you're using Auto Browse alongside an existing Playwright setup, you must upg
61
61
Auto Browse requires environment variables for the LLM (Language Model) configuration. Create a ` .env ` file in your project root:
62
62
63
63
``` env
64
+ # For OpenAI (default)
64
65
OPENAI_API_KEY=your_openai_api_key_here
65
- LLM_MODEL=gpt-4o-mini # Optional, defaults to gpt-4o-mini
66
+ LLM_PROVIDER=openai # Optional, this is default
67
+ AUTOBROWSE_LLM_MODEL=gpt-4o-mini # Optional, defaults to gpt-4o-mini
68
+
69
+ # Or for Google AI
70
+ GOOGLE_API_KEY=your_google_key_here
71
+ LLM_PROVIDER=google
72
+ AUTOBROWSE_LLM_MODEL=gemini-2.0-flash-lite # Or other supported model
66
73
```
67
74
68
75
You can find an example configuration in ` example.env ` .
69
76
70
77
### Environment Variables
71
78
72
- | Variable | Description | Default |
73
- | ---------------- | ------------------------------ | ------------- |
74
- | ` OPENAI_API_KEY ` | Your OpenAI API key (required) | - |
75
- | ` LLM_MODEL ` | The LLM model to use | ` gpt-4o-mini ` |
79
+ | Variable | Description | Default |
80
+ | ---------------------- | ----------------------------------- | ------------- |
81
+ | ` LLM_PROVIDER ` | LLM provider to use (openai/google) | ` openai ` |
82
+ | ` OPENAI_API_KEY ` | Your OpenAI API key | - |
83
+ | ` GOOGLE_API_KEY ` | Your Google AI API key | - |
84
+ | ` AUTOBROWSE_LLM_MODEL ` | The LLM model to use | ` gpt-4o-mini ` |
76
85
77
86
## Supported LLM Providers
78
87
79
88
Currently supported:
80
89
81
90
- OpenAI (gpt-4o-mini and compatible models)
91
+ - Google AI (Gemini models)
82
92
83
93
Coming soon:
84
94
85
95
- Anthropic Claude
86
- - Google Gemini
87
96
- Local LLMs
88
97
- Meta Llama
89
98
@@ -200,7 +209,6 @@ import { Given, When as aistep, Then } from "./fixtures";
200
209
aistep (/ ^ (. * )$ / , async ({ page }, action : string ) => {
201
210
await auto (action , { page });
202
211
});
203
-
204
212
```
205
213
206
214
#### Setup Requirements
0 commit comments