# Find the think block

> Deepgram workshops › Build a voice agent › Swap the brain › Section 1 of 2
> Web version: https://workshops.deepgram.com/voice-agent/swap-the-brain/find-the-think-block
> About 15 min (estimate). Optional.

This one runs in your own code, because the browser console doesn't expose the model. You need the [voice-agent-workshop](https://github.com/deepgram-devs/voice-agent-workshop) project you set up in First words, with `make run 00` working.

## Find the line

**Do:** Open First words in your language and find the `think` block in the Settings message. It names a provider type and a model.

Python, in `python/missions/00-first-words/start.py`:

```python
"think": {"provider": {"type": "open_ai", "model": "gpt-4o-mini"}, "prompt": PROMPT},
```

TypeScript, in `typescript/missions/00-first-words/start.ts`:

```ts
think: { provider: { type: 'open_ai', model: 'gpt-4o-mini' }, prompt: PROMPT },
```

Java, in `java/missions/m00_first_words/Start.java`:

```java
"think", obj("provider", obj("type", "open_ai", "model", "gpt-4o-mini"), "prompt", PROMPT),
```

**How it works**

The `think` block decides which model writes the agent's replies. The `listen` and `speak` blocks next to it don't change when you edit it, so the voice stays the same and only the thinking does.

Deepgram provides models from OpenAI, Anthropic, and Google, so you pick one by its provider `type` and `model` and leave `endpoint` out. The current list is in the [LLM models docs](https://developers.deepgram.com/docs/voice-agent-llm-models).
