LlamaIndex with idapt
OpenAILike against idapt's compatible API for indexes, query engines, and agents.
- 1
Install
bashpip install llama-index llama-index-llms-openai-like - 2
Point it at idapt
pythonfrom llama_index.llms.openai_like import OpenAILike llm = OpenAILike( model="openai/gpt-5.6-luna", api_base="https://idapt.app/api/openai/v1", api_key=os.environ["IDAPT_API_KEY"], is_chat_model=True, )is_chat_model=True routes calls to /chat/completions instead of the legacy completions path.
GOOD TO KNOW
API keys and scopesOpenAI-compatible API referenceOpenRouter-compatible API referenceRate limits and errors