> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# close • AI Agents Framework

> close: Close the core OpenAI client if it exists.

# close

Method

> This is a method of the [**BaseAutoGenerator**](https://praison.ai/docs/sdk/reference/praisonai/classes/BaseAutoGenerator.md) class in the [**auto**](https://praison.ai/docs/sdk/reference/praisonai/modules/auto.md) module.

Close the core OpenAI client if it exists.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def close() -> Any
```

### Returns

**Returns** `Any`

The result of the operation.

## Uses

* `client.close`

## Used By

* [`BaseAutoGenerator.close`](../functions/BaseAutoGenerator-close)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L633)
>
> `praisonai/auto.py` at line 633


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