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.

ExampleDescription
Meta BasicRun sync, async, and streaming requests.
Meta Image Input BytesSend local JPEG bytes as image input.
Meta Image Input FileSend a local JPEG file as image input.
KnowledgeRetrieve answers from PDF knowledge stored in PgVector.
MemoryPersist user memories and conversation summaries.
Meta MetricsInspect message, run, and session metrics.
StoragePersist session history in Postgres.
Meta Structured OutputRequest a JSON schema and validate a movie script.
Tool UseLook up stock prices with YFinance tools.