Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: quickstart models #18511

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/get_started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ We can then initialize the model:
```python
from langchain_anthropic import ChatAnthropic

llm = ChatAnthropic(model="claude-2.1", temperature=0.2, max_tokens=1024)
llm = ChatAnthropic(model="claude-3-sonnet-20240229", temperature=0.2, max_tokens=1024)
```

If you'd prefer not to set an environment variable you can pass the key in directly via the `anthropic_api_key` named parameter when initiating the Anthropic Chat Model class:
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/modules/model_io/quick_start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ from langchain_openai import ChatOpenAI
from langchain_openai import OpenAI

llm = OpenAI()
chat_model = ChatOpenAI()
chat_model = ChatOpenAI(model="gpt-3.5-turbo-0125")
```

If you'd prefer not to set an environment variable you can pass the key in directly via the `openai_api_key` named parameter when initiating the OpenAI LLM class:
Expand Down Expand Up @@ -84,7 +84,7 @@ We can then initialize the model:
```python
from langchain_anthropic import ChatAnthropic

chat_model = ChatAnthropic(model="claude-2.1", temperature=0.2, max_tokens=1024)
chat_model = ChatAnthropic(model="claude-3-sonnet-20240229", temperature=0.2, max_tokens=1024)
```

If you'd prefer not to set an environment variable you can pass the key in directly via the `anthropic_api_key` named parameter when initiating the Anthropic Chat Model class:
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/use_cases/question_answering/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ import TabItem from '@theme/TabItem';
```python
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0)
llm = ChatOpenAI(model_name="gpt-3.5-turbo-0125", temperature=0)
```

</TabItem>
Expand All @@ -494,7 +494,7 @@ llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0)
```python
from langchain_anthropic import ChatAnthropic

llm = ChatAnthropic(model="claude-2.1", temperature=0, max_tokens=1024)
llm = ChatAnthropic(model="claude-3-sonnet-20240229", temperature=0.2, max_tokens=1024)
```

</TabItem>
Expand Down