> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Non-Reasoning Model Agent

> Use a non-reasoning model like `gpt-4.1` as an agent's `reasoning_model` for Chain-of-Thought reasoning.

Example showing how to use a non-reasoning model as a reasoning model.

For reasoning, we recommend using a Reasoning Agent (with `reasoning=True`), or using an appropriate reasoning model with `reasoning_model`.

**1. Add the following code to your Python file**

```python non-reasoning-model-cot.py theme={null}
from agno.agent import Agent
from agno.models.openai import OpenAIResponses

reasoning_agent = Agent(
    model=OpenAIResponses(id="gpt-5.2"),
    reasoning_model=OpenAIResponses(
        id="gpt-4.1", # This model will be used for reasoning, although it is not a native reasoning model.
        max_output_tokens=1200,
    ),
    markdown=True,
)
reasoning_agent.print_response(
    "Give me steps to write a python script for fibonacci series",
    stream=True,
    show_full_reasoning=True,
)

# It uses the default model of the Agent
reasoning_agent = Agent(
    model=OpenAIResponses(id="gpt-4.1", max_output_tokens=1200),
    reasoning=True,
    markdown=True,
)
reasoning_agent.print_response(
    "Give me steps to write a python script for fibonacci series",
    stream=True,
    show_full_reasoning=True,
)
```

<Snippet file="create-venv-step.mdx" />

**2. Install dependencies**

```bash theme={null}
uv pip install -U openai agno
```

**3. Export your OpenAI API key**

```bash Mac/Linux theme={null}
  export OPENAI_API_KEY="your_openai_api_key_here"
```

```bash Windows theme={null}
  $Env:OPENAI_API_KEY="your_openai_api_key_here"
```

**4. Run Agent**

```bash theme={null}
python non-reasoning-model-cot.py
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.