# LlamaIndex

Use LlamaIndex's OpenAILike adapter for Laminarity chat and streaming workflows.

> Verification: source-checked; checked 2026-09-01; llama-index-llms-openai-like — Prepared as second-wave coverage; package contract and live execution are pending.

## Install and configure

```python
pip install llama-index-llms-openai-like

from llama_index.llms.openai_like import OpenAILike
import os

llm = OpenAILike(
    model="auto",
    api_base="https://api.laminarity.ai/v1",
    api_key=os.environ["LAMINARITY_API_KEY"],
    is_chat_model=True,
    is_function_calling_model=True,
    context_window=64000,
)

response = llm.complete("Give me one launch checklist item.")
```

## Compatibility boundary

Use the OpenAILike chat and stream methods. Laminarity does not expose an embeddings endpoint, so configure a separate LlamaIndex embedding model when an index requires one.

The context value is a conservative client-side setting for `auto`; it is not a universal native model limit. Pin only ids returned by `/v1/models`.

## Upstream documentation

- [LlamaIndex OpenAILike API](https://docs.llamaindex.ai/en/stable/api_reference/llms/openai_like/)
