mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-06 00:19:13 +00:00
beef up getting started (#8139)
Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
13
docs/snippets/get_started/quickstart/import_llms.mdx
Normal file
13
docs/snippets/get_started/quickstart/import_llms.mdx
Normal file
@@ -0,0 +1,13 @@
|
||||
```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"
|
||||
```
|
||||
Reference in New Issue
Block a user