Integration guide
LlamaIndex
Use LlamaIndex's OpenAILike adapter for Laminarity chat and streaming workflows.
Install and configure
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.