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,
)
Metadata
Release files for llama-index-llms-openai-like 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_llms_openai_like-0.9.0.tar.gz | 5.4 kB | Without provenance | Details for llama_index_llms_openai_like-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_llms_openai_like-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_llms_openai_like-0.9.0-py3-none-any.whl |
Total release size: 12.0 kB
Release files / llama_index_llms_openai_like-0.9.0.tar.gz
| Download URL | llama_index_llms_openai_like-0.9.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea0437f81da9f242e054aa2e3529f585dc06b44446139d6f4f790f6c1d7a2d47
|
|
BLAKE2b-256 checksum How to use checksums |
c4fab2aa93945578d2e773699a3eeb2d4e5baa1f644778b005a6be404ae0a2f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llama_index_llms_openai_like-0.9.0-py3-none-any.whl
| Download URL | llama_index_llms_openai_like-0.9.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e86a1d842cfc569948ee2b083d1c4b7d2fe325c9112ec681987b269c1dc4841
|
|
BLAKE2b-256 checksum How to use checksums |
295b98298de4291e6d6b27d55240d0ec944bfcbd9440c882b8afa4e1d45e05ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for llama-index-llms-openai-like 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.