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

# Prepare Modelfile Content • AI Agents Framework

> prepare_modelfile_content: API reference for TrainModel.prepare_modelfile_content

# prepare\_modelfile\_content

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**TrainModel**](../classes/TrainModel) class in the [**train**](../modules/train) module.

## Signature

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

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Used By

* [`TrainModel.create_and_push_ollama_model`](../functions/TrainModel-create_and_push_ollama_model)
* [`TrainVisionModel.create_and_push_ollama_model`](../functions/TrainVisionModel-create_and_push_ollama_model)
* [`UploadVisionModel.create_and_push_ollama_model`](../functions/UploadVisionModel-create_and_push_ollama_model)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/train.py#L319">
  `praisonai/train.py` at line 319
</Card>
