# 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/choose-an-llm/find-the-think-block
> About 15 min (estimate). Optional.

## Find the line

**Goal:** Find the line in your code that names the model writing your agent's replies.

**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.

This one runs in your own code, because the browser console doesn't expose the model. The model is the AI that writes what the agent says. The `think` block is the part of your Settings message that picks it.

**Do:** Open First words in your language and find the `think` block in the Settings message. It names a provider (the company that runs the model) 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),
```

**You should see:** a `think` line like the one for your language, with `open_ai` as the provider type and `gpt-4o-mini` as the model. If you can't find it, check that you opened the First words file for your language.

**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. The voice stays the same and only the thinking does.

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