备份
This commit is contained in:
+20
-1
@@ -9,7 +9,26 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
""
|
||||
"import anthropic\n",
|
||||
"\n",
|
||||
"client = anthropic.Anthropic()\n",
|
||||
"\n",
|
||||
"message = client.messages.create(\n",
|
||||
" model=\"MiniMax-M2.5\", # 切换为其他模型,如 MiniMax-M2.1\n",
|
||||
" max_tokens=1000,\n",
|
||||
" system=\"You are a helpful assistant.\",\n",
|
||||
" messages=[\n",
|
||||
" {\n",
|
||||
" \"role\": \"user\",\n",
|
||||
" \"content\": [\n",
|
||||
" {\n",
|
||||
" \"type\": \"text\",\n",
|
||||
" \"text\": \"Hi, how are you?\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
")"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user