Webwright icon indicating copy to clipboard operation
Webwright copied to clipboard

add gemini model support

Open Krank41 opened this issue 6 months ago • 1 comments

This PR is for using gemini models via API key. Two files has been added :

  1. src/webwright/config/model_gemini.yaml
  2. src/webwright/models/gemini_model.py

I have Done testing using below command 1. python -m webwright.run.cli -c base.yaml -c model_gemini.yaml -t "Search for flights from SEA to JFK on 2026-08-15 to 2026-08-20" --start-url https://www.google.com/flights --task-id test1_demo_gemini -o outputs/default

output: It took 16 steps to complete the task. Total 6 screenshots captured. Total 36 entries in raw_responses.jsonl

python -m webwright.run.cli -c local_browser.yaml -c model_gemini.yaml -t "Search for flights from SEA to JFK on 2026-08-15 to 2026-08-20" --start-url https://www.google.com/flights --task-id test1_demo_gemini -o outputs/default It took 15 steps to complete the tasks Total 15 screenshots captured Total 25 entries in raw_responses.jsonl

Krank41 avatar May 30 '26 09:05 Krank41

@microsoft-github-policy-service agree

Krank41 avatar May 30 '26 09:05 Krank41