Skip to content

Commit

Permalink
update anthropic sonnet model name
Browse files Browse the repository at this point in the history
  • Loading branch information
teddylee777 committed Oct 22, 2024
1 parent 0ba03af commit aa34cac
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions 04-Model/01-Chat-Models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,22 @@
"- **모델 리스트**: [https://docs.anthropic.com/en/docs/about-claude/models](https://docs.anthropic.com/en/docs/about-claude/models)\n",
"\n",
"\n",
"![](images/anthropic.png)"
"![](images/anthropic-20241023.png)"
]
},
{
"cell_type": "markdown",
"id": "616c7a79",
"metadata": {},
"source": [
"| model_name | model | Anthropic API | AWS Bedrock | GCP Vertex AI |\n",
"|----------------|-----------------------------------------|-----------------------------------------|----------------------------------------|-------------------------------|\n",
"| Claude 3.5 Opus | 연말 출시 예정 | 연말 출시 예정 | 연말 출시 예정 | 연말 출시 예정 |\n",
"| Claude 3.5 Sonnet | claude-3-5-sonnet-20240620 | anthropic.claude-3-5-sonnet-20240620-v1:0 | c1aude-3-5-sonnet@20240620 | claude-3-5-sonnet@20240620 |\n",
"| Claude 3.5 Haiku | 연말 출시 예정 | 연말 출시 예정 | 연말 출시 예정 | 연말 출시 예정 |\n",
"| Claude 3 Opus | claude-3-opus-20240229 | anthropic.claude-3-opus-20240229-v1:0 | c1aude-3-opus@20240229 | claude-3-opus@20240229 |\n",
"| Claude 3 Sonnet | claude-3-sonnet-20240229 | anthropic.claude-3-sonnet-20240229-v1:0 | c1aude-3-sonnet@20240229 | claude-3-sonnet@20240229 |\n",
"| Claude 3 Haiku | claude-3-haiku-20240307 | anthropic.claude-3-haiku-20240307-v1:0 | c1aude-3-haiku@20240307 | claude-3-haiku@20240307 |"
"| model_name | model | Anthropic API | AWS Bedrock | GCP Vertex AI |\n",
"|------------------|------------------------------------|--------------------------------------------|----------------------------------------------|-----------------------------------|\n",
"| Claude 3.5 Opus | 연말 출시 예정 | 연말 출시 예정 | 연말 출시 예정 | 연말 출시 예정 |\n",
"| Claude 3.5 Sonnet| claude-3-5-sonnet-20241022 | claude-3-5-sonnet-20241022 | anthropic.claude-3-5-sonnet-20241022-v2:0 | claude-3-5-sonnet-v2@20241022 |\n",
"| Claude 3.5 Haiku | 연말 출시 예정 | 연말 출시 예정 | 연말 출시 예정 | 연말 출시 예정 |\n",
"| Claude 3 Opus | claude-3-opus-20240229 | claude-3-opus-20240229 | anthropic.claude-3-opus-20240229-v1:0 | claude-3-opus@20240229 |\n",
"| Claude 3 Sonnet | claude-3-sonnet-20240229 | claude-3-sonnet-20240229 | anthropic.claude-3-sonnet-20240229-v1:0 | claude-3-sonnet@20240229 |\n",
"| Claude 3 Haiku | claude-3-haiku-20240307 | claude-3-haiku-20240307 | anthropic.claude-3-haiku-20240307-v1:0 | claude-3-haiku@20240307 |"
]
},
{
Expand All @@ -149,7 +149,7 @@
"from langchain_anthropic import ChatAnthropic\n",
"\n",
"# ChatAnthropic 객체를 생성합니다.\n",
"anthropic = ChatAnthropic(model_name=\"claude-3-5-sonnet-20240620\")\n",
"anthropic = ChatAnthropic(model_name=\"claude-3-5-sonnet-20241022\")\n",
"\n",
"# 스트리밍 출력을 위하여 invoke() 대신 stream()을 사용합니다.\n",
"answer = anthropic.stream(\"사랑이 뭔가요?\")\n",
Expand Down Expand Up @@ -285,6 +285,19 @@
" print(f\"오류 발생: {str(e)}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5350647b",
"metadata": {},
"outputs": [],
"source": [
"# UPSTAGE API KEY 설정\n",
"import os\n",
"\n",
"os.environ[\"UPSTAGE_API_KEY\"] = \"이곳에 API KEY를 입력하세요.\""
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -295,7 +308,7 @@
"from langchain_upstage import ChatUpstage\n",
"\n",
"# ChatUpstage 객체를 생성합니다.\n",
"upstage = ChatUpstage()\n",
"upstage = ChatUpstage(model=\"solar-pro\")\n",
"\n",
"# 스트리밍 출력을 위하여 invoke() 대신 stream()을 사용합니다.\n",
"answer = upstage.stream(\"사랑이 뭔가요?\")\n",
Expand Down

0 comments on commit aa34cac

Please sign in to comment.