Llama OpenAI
OpenAI-compatible Llama examples for runs, images, knowledge, memory, metrics, storage, structured output, and tools.
The linked source revision has a LlamaOpenAI formatter failure. These pages provide an OpenAILike configuration for Meta's compatible endpoint; apply each page's current instructions. API account and model access are required.
| Example | Description |
|---|---|
| Meta Basic | Run sync, async, and streaming requests. |
| Meta Image Input Bytes | Send local JPEG bytes as image input. |
| Meta Image Input File | Send a local JPEG file as image input. |
| Knowledge | Retrieve answers from PDF knowledge stored in PgVector. |
| Memory | Persist user memories and conversation summaries. |
| Meta Metrics | Inspect message, run, and session metrics. |
| Storage | Persist session history in Postgres. |
| Meta Structured Output | Request a JSON schema and validate a movie script. |
| Tool Use | Look up stock prices with YFinance tools. |