Repository: confident-ai/deepeval
Issue: Missing Gemini setup in examples + Google sign-in loop on platform
Root cause: Documentation Deficiency

**❗BEFORE YOU BEGIN❗**  
Are you on Discord? 🤗 We’d love to have you asking questions there instead: https://discord.com/invite/a3K9c8GRGt

---

## Describe the bug
This report covers **two related issues** I encountered while adopting DeepEval and the Confident AI platform:

1. **Example scripts assume an OpenAI API key only.**  
   - I only have a **Google Gemini** key.  
   - Running `examples/test_chatbot.py` fails until I manually patch the code, following the workaround in issue **#829** (see last comment by *sayagh-code*).  
   - The official docs don’t explain how to substitute other model providers or supply a Gemini-specific example.

2. **Unable to sign in to the Confident AI web platform with a Google account.**  
   - After choosing “Continue with Google,” the page reloads endlessly and never renders the dashboard.

---

## To Reproduce

### 1 · Model-key substitution problem
1. Clone the repo and install requirements.
2. Ensure only `GOOGLE_API_KEY` (Gemini) is set in the environment; no `OPENAI_API_KEY`.
3. Run `python examples/test_chatbot.py`.
4. Observe authentication/initialisation error.

### 2 · Google-login loop on the web platform
1. Navigate to https://platform.confident-ai.com.
2. Click **Sign in with Google**.
3. Complete Google OAuth consent.
4. Browser redirects back and loops indefinitely; dashboard never appears.

<img width="1512" alt="Image" src="https://github.com/user-attachments/assets/5eaeb9c8-3c4a-4cfe-9b68-0a2728da759f" />

---

## Expected behavior
1. **Examples**: Each example should either  
   - detect the provider from environment variables (`GOOGLE_API_KEY`, `ANTHROPIC_API_KEY`, etc.) or  
   - provide separate ready-to-run snippets for major providers (Gemini, Claude, Mistral, etc.).

2. **Platform login**: After OAuth, I should land on the Confident AI dashboard instead of a blank/looping page.

---

## Screenshots
*Will happily supply GIFs / screenshots if needed—omitted here for brevity.*

---

## Desktop (please complete the following information)
- **OS:** macOS 15.1 (Apple Silicon, arm64)
- **Browser:** Google Chrome
- **Version:** 136.0.7103.114 (Official Build) (arm64)

---

## Smartphone (please complete the following information)
N/A — issue observed on desktop only.

---

## Additional context
- Workaround used: https://github.com/confident-ai/deepeval/issues/829#issuecomment-** (last comment by *sayagh-code*).  
- Suggest adding a **“Gemini quick-start”** section in the docs and extending `examples/` with provider-agnostic patterns (e.g., env-driven client selection).

Thank you for looking into this! 🙏

Hey @ZhangJin233 the examples directory is not actively maintained...

The website was down for a few minutes yesterday due to one of our vendors being down, can you double check right now to see if you're able to see it?

The gemini quickstart docs are here btw: https://deepeval.com/integrations/models/gemini

hi@penguine-ip thanks for your help
1. the web platform still is not work now: 
<img width="1502" alt="Image" src="https://github.com/user-attachments/assets/96d3f1ac-d18a-4f1d-8d22-68523639dcc4" />
2. ok, I run Gemini model successfully, but I am not sure if it is correctly. this is result: 

![Image](https://github.com/user-attachments/assets/4e331cc4-03fa-4b46-9099-337f099e7d9f)

![Image](https://github.com/user-attachments/assets/89148fa7-297e-469b-9b7f-b60bbf89ec93)

![Image](https://github.com/user-attachments/assets/244006ba-9811-4eaf-a397-e9231596a318)

@ZhangJin233 it's https://app.confident-ai.com

@penguine-ip still not work, this is chrome network log:
**Chrome version** : Version 137.0.7151.69 (Official Build) (arm64)

<img width="1507" alt="Image" src="https://github.com/user-attachments/assets/6b45569b-55bb-491c-8c5b-daaed00bd6c3" />

```
{
    "errors": [
        {
            "message": "Error loading CAPTCHA",
            "long_message": "The CAPTCHA failed to load. This may be due to an unsupported browser or a browser extension. Please try a different browser or disabling extensions. If this issue persists, please contact support.",
            "code": "captcha_invalid"
        }
    ],
    "meta": {
        "client": {
            "object": "client",
            "id": "client_2y4zq0CtrrYjHDPvdkUgUOCKGtb",
            "sessions": [],
            "sign_in": null,
            "sign_up": null,
            "last_active_session_id": null,
            "cookie_expires_at": 1783668820309,
            "captcha_bypass": false,
            "created_at": 1749108820300,
            "updated_at": 1749606302940
        }
    },
    "clerk_trace_id": "777a25089eedc827c1aa7ce4430f1963"
}
```

Hey @penguine-ip, taking this one step further, I tried to use https://app.confident-ai.com/ and it works, but the only thing it asks for company email, and I am not sure, but I think it is an expected behaviour, if I am not wrong.

<img width="1091" height="576" alt="Image" src="https://github.com/user-attachments/assets/912e7194-ecc7-4f30-8297-c938db3493bc" />