litellm-mirror/docs/snippets/get_started/quickstart/import_llms.mdx
ishaan-jaff a168cf8b9c add v4
2023-07-29 07:12:19 -07:00

13 lines
No EOL
199 B
Text

```python
from langchain.llms import OpenAI
from langchain.chat_models import ChatOpenAI
llm = OpenAI()
chat_model = ChatOpenAI()
llm.predict("hi!")
>>> "Hi"
chat_model.predict("hi!")
>>> "Hi"
```