| Name | llama-index-llms-openai-like JSON |
| Version |
0.5.0
JSON |
| download |
| home_page | None |
| Summary | llama-index llms openai like integration |
| upload_time | 2025-07-30 21:26:10 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | <4.0,>=3.9 |
| license | None |
| keywords |
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# 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
```python
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,
)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-llms-openai-like",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Your Name <you@example.com>",
"download_url": "https://files.pythonhosted.org/packages/72/10/562c30b4f6b0fb6bc197b4a4111ee6efd273338bc67da45ff944534229b6/llama_index_llms_openai_like-0.5.0.tar.gz",
"platform": null,
"description": "# LlamaIndex Llms Integration: Openai Like\n\n`pip install llama-index-llms-openai-like`\n\nThis 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.\n\n## Usage\n\n```python\nfrom llama_index.llms.openai_like import OpenAILike\n\nllm = OpenAILike(\n model=\"model-name\",\n api_base=\"http://localhost:1234/v1\",\n api_key=\"fake\",\n # Explicitly set the context window to match the model's context window\n context_window=128000,\n # Controls whether the model uses chat or completion endpoint\n is_chat_model=True,\n # Controls whether the model supports function calling\n is_function_calling_model=False,\n)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "llama-index llms openai like integration",
"version": "0.5.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "326d9de82f1648f1056bfa6660d9ba3dd6883fbb28811fafd294df5509891191",
"md5": "013a022970e02cb60513f1ea98d5de8e",
"sha256": "6bc4a749b70f659f9bb5ed4bd412a4089353eb58d28e8057db67b29d73436cc6"
},
"downloads": -1,
"filename": "llama_index_llms_openai_like-0.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "013a022970e02cb60513f1ea98d5de8e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 4596,
"upload_time": "2025-07-30T21:26:08",
"upload_time_iso_8601": "2025-07-30T21:26:08.136813Z",
"url": "https://files.pythonhosted.org/packages/32/6d/9de82f1648f1056bfa6660d9ba3dd6883fbb28811fafd294df5509891191/llama_index_llms_openai_like-0.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7210562c30b4f6b0fb6bc197b4a4111ee6efd273338bc67da45ff944534229b6",
"md5": "8d710dc821baf1d8ed4fe3d9069cb995",
"sha256": "9457bedeb63b6954e150fc67b42e446e3753a714aa903a0076252fb7c20dffee"
},
"downloads": -1,
"filename": "llama_index_llms_openai_like-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "8d710dc821baf1d8ed4fe3d9069cb995",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 4896,
"upload_time": "2025-07-30T21:26:10",
"upload_time_iso_8601": "2025-07-30T21:26:10.481753Z",
"url": "https://files.pythonhosted.org/packages/72/10/562c30b4f6b0fb6bc197b4a4111ee6efd273338bc67da45ff944534229b6/llama_index_llms_openai_like-0.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-30 21:26:10",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-llms-openai-like"
}