# Meta Llama and AIMLAPI runs work again

> Agno runs on the Meta Llama and AIMLAPI models work again. Their message formatting had drifted from OpenAIChat, and every call raised a TypeError.

- Published: 2026-09-08
- Author: Kaustubh Shukla
- Categories: Changelog
- Canonical: https://www.agno.com/articles/meta-llama-and-aimlapi-runs-work-again
- Markdown: https://www.agno.com/articles/meta-llama-and-aimlapi-runs-work-again.md

Every Agno run on the `LlamaOpenAI` and `AIMLAPI` models raised a `TypeError`, and the model layer returned that error as the assistant's answer.

Both providers override `_format_message`, and their overrides no longer matched `OpenAIChat`, which now passes `compress_tool_results` as a positional argument.

The Llama override now matches the base class and passes the flag through. The AIMLAPI override is gone, so `AIMLAPI` uses the base class directly. Compressed tool results now reach both models too.

```python
from agno.agent import Agent
from agno.models.aimlapi import AIMLAPI
from agno.models.meta import LlamaOpenAI

Agent(model=LlamaOpenAI()).print_response("Summarize the benefits of open-source models.")
Agent(model=AIMLAPI()).print_response("Summarize the benefits of open-source models.")
```

See the [Meta](https://docs.agno.com/models/providers/native/meta/overview) and [AI/ML API](https://docs.agno.com/models/providers/gateways/aimlapi/overview) model guides in the documentation.
