Registry / llm-agents / llama-index-llms-ibm

llama-index-llms-ibm

JSON →
library0.7.0.post1pypypiunverified

LlamaIndex integration for IBM watsonx.ai foundation models. Current version 0.7.0.post1 requires Python 3.11+ and <3.14. Lightly maintained, with occasional releases following LlamaIndex updates.

pip install llama-index-llms-ibm
INSTALL
IMPORT
SIG · LLAMA-INDEX-LLMS-I
L
llama-index-llms-ibm
llm-agentspythonv0.7.0.post1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IBM
from llama_index.llms.ibm import IBM
from llama_index.llms.ibm import IBM

Minimal example using WatsonxLLM. Set WATSONX_APIKEY and WATSONX_PROJECT_ID environment variables.

import os from llama_index.llms.ibm import WatsonxLLM api_key = os.environ.get('WATSONX_APIKEY', '') project_id = os.environ.get('WATSONX_PROJECT_ID', '') llm = WatsonxLLM( model_id='meta-llama/llama-3-70b-instruct', api_key=api_key, project_id=project_id, ) response = llm.complete('What is the capital of France?') print(response.text)
Debug
Known issues
breakingIn v0.7.0, the import path changed from `llama_index.llms.ibm` to requiring specific submodule imports. Old `from llama_index.llms.ibm import IBM` no longer works; use `from llama_index.llms.ibm import WatsonxLLM`.
fix
Update imports to use WatsonxLLM class and correct path.
affects: >=0.7.0
breakingThe `model_id` parameter is now required and defaults removed. Previously optional models may fail if not explicitly provided.
fix
Always specify `model_id` when creating WatsonxLLM instance.
affects: >=0.7.0
gotchaIBM watsonx.ai credentials must be passed via environment variables (WATSONX_APIKEY, WATSONX_PROJECT_ID) or constructor arguments. Passing only API key without project ID raises a missing credentials error.
fix
Ensure both WATSONX_APIKEY and WATSONX_PROJECT_ID are set.
affects: all
deprecatedThe `IBM` class alias is deprecated in v0.7.0 and will be removed in a future release. Use `WatsonxLLM` instead.
fix
Replace `IBM` with `WatsonxLLM`.
affects: >=0.7.0
Upgrade
Version history
0.7.0.post1latest on PyPI · released Feb 17, 2026
Audit
Dependencies
llama-index-corerequiredcore framework dependency
ibm-watsonx-airequiredIBM watsonx.ai SDK
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
llama-index-llms-ibm — pip install llama-index-llms-ibm · libregistry