This commit is contained in:
2026-04-09 10:19:09 +08:00
parent eaf83c6f85
commit cc445c405a
25 changed files with 8165 additions and 3155 deletions
+20 -1
View File
@@ -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",
")"
]
}
],