llama-index llms openai like integration
Project Links
Meta
Author: Your Name
Requires Python: <4.0,>=3.10
Classifiers
LlamaIndex Llms Integration: Openai Like
pip install llama-index-llms-openai-like
This package is a thin wrapper around the OpenAI API. It is designed to be used with the OpenAI API, but can be used with any OpenAI-compatible API.
Usage
from llama_index.llms.openai_like import OpenAILike
llm = OpenAILike(
model="model-name",
api_base="http://localhost:1234/v1",
api_key="fake",
# Explicitly set the context window to match the model's context window
context_window=128000,
# Controls whether the model uses chat or completion endpoint
is_chat_model=True,
# Controls whether the model supports function calling
is_function_calling_model=False,
)
0.7.1
Mar 13, 2026
0.7.0
Mar 12, 2026
0.6.0
Jan 30, 2026
0.5.3
Sep 28, 2025
0.5.2
Sep 25, 2025
0.5.1
Sep 08, 2025
0.5.0
Jul 30, 2025
0.4.0
May 30, 2025
0.3.5
May 19, 2025
0.3.4
Mar 04, 2025
0.3.3
Dec 11, 2024
0.3.2
Dec 11, 2024
0.3.1
Dec 11, 2024
0.3.0
Nov 18, 2024
0.2.0
Aug 22, 2024
0.1.3
Feb 21, 2024
0.1.2
Feb 20, 2024
0.1.1
Feb 12, 2024
0.1.0
Feb 10, 2024
0.0.2
Feb 05, 2024
0.0.1
Feb 03, 2024