Skip to content

Commit

Permalink
ibm: Add support for Chat Models (#22979)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszOssGit committed Jun 29, 2024
1 parent 16c5911 commit a78ccb9
Show file tree
Hide file tree
Showing 9 changed files with 1,965 additions and 239 deletions.
585 changes: 585 additions & 0 deletions docs/docs/integrations/chat/ibm_watsonx.ipynb

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions docs/docs/integrations/providers/ibm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ import os
os.environ["WATSONX_APIKEY"] = "your IBM watsonx.ai api key"
```

## Chat Model

### ChatWatsonx

See a [usage example](/docs/integrations/chat/ibm_watsonx).

```python
from langchain_ibm import ChatWatsonx
```

## LLMs

### WatsonxLLM
Expand Down
3 changes: 2 additions & 1 deletion libs/partners/ibm/langchain_ibm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from langchain_ibm.chat_models import ChatWatsonx
from langchain_ibm.embeddings import WatsonxEmbeddings
from langchain_ibm.llms import WatsonxLLM

__all__ = ["WatsonxLLM", "WatsonxEmbeddings"]
__all__ = ["WatsonxLLM", "WatsonxEmbeddings", "ChatWatsonx"]
Loading

0 comments on commit a78ccb9

Please sign in to comment.