Update unit1/dummy_agent_library.ipynb
Browse files
unit1/dummy_agent_library.ipynb
CHANGED
|
@@ -63,7 +63,7 @@
|
|
| 63 |
"## You need a token from https://hf.co/settings/tokens, ensure that you select 'read' as the token type. If you run this on Google Colab, you can set it up in the \"settings\" tab under \"secrets\". Make sure to call it \"HF_TOKEN\"\n",
|
| 64 |
"# HF_TOKEN = os.environ.get(\"HF_TOKEN\")\n",
|
| 65 |
"\n",
|
| 66 |
-
"client = InferenceClient(model=\"
|
| 67 |
]
|
| 68 |
},
|
| 69 |
{
|
|
@@ -104,6 +104,7 @@
|
|
| 104 |
" ],\n",
|
| 105 |
" stream=False,\n",
|
| 106 |
" max_tokens=20,\n",
|
|
|
|
| 107 |
")\n",
|
| 108 |
"print(output.choices[0].message.content)"
|
| 109 |
]
|
|
@@ -298,6 +299,7 @@
|
|
| 298 |
" messages=messages,\n",
|
| 299 |
" stream=False,\n",
|
| 300 |
" max_tokens=200,\n",
|
|
|
|
| 301 |
")\n",
|
| 302 |
"print(output.choices[0].message.content)"
|
| 303 |
]
|
|
@@ -352,7 +354,8 @@
|
|
| 352 |
"output = client.chat.completions.create(\n",
|
| 353 |
" messages=messages,\n",
|
| 354 |
" max_tokens=150,\n",
|
| 355 |
-
" stop=[\"Observation:\"] # Let's stop before any actual function is called\n",
|
|
|
|
| 356 |
")\n",
|
| 357 |
"\n",
|
| 358 |
"print(output.choices[0].message.content)"
|
|
@@ -494,6 +497,7 @@
|
|
| 494 |
" messages=messages,\n",
|
| 495 |
" stream=False,\n",
|
| 496 |
" max_tokens=200,\n",
|
|
|
|
| 497 |
")\n",
|
| 498 |
"\n",
|
| 499 |
"print(output.choices[0].message.content)"
|
|
|
|
| 63 |
"## You need a token from https://hf.co/settings/tokens, ensure that you select 'read' as the token type. If you run this on Google Colab, you can set it up in the \"settings\" tab under \"secrets\". Make sure to call it \"HF_TOKEN\"\n",
|
| 64 |
"# HF_TOKEN = os.environ.get(\"HF_TOKEN\")\n",
|
| 65 |
"\n",
|
| 66 |
+
"client = InferenceClient(model=\"moonshotai/Kimi-K2.5\")"
|
| 67 |
]
|
| 68 |
},
|
| 69 |
{
|
|
|
|
| 104 |
" ],\n",
|
| 105 |
" stream=False,\n",
|
| 106 |
" max_tokens=20,\n",
|
| 107 |
+
" extra_body={\"thinking\": {\"type\": \"disabled\"}},,\n",
|
| 108 |
")\n",
|
| 109 |
"print(output.choices[0].message.content)"
|
| 110 |
]
|
|
|
|
| 299 |
" messages=messages,\n",
|
| 300 |
" stream=False,\n",
|
| 301 |
" max_tokens=200,\n",
|
| 302 |
+
" extra_body={\"thinking\": {\"type\": \"disabled\"}},,\n",
|
| 303 |
")\n",
|
| 304 |
"print(output.choices[0].message.content)"
|
| 305 |
]
|
|
|
|
| 354 |
"output = client.chat.completions.create(\n",
|
| 355 |
" messages=messages,\n",
|
| 356 |
" max_tokens=150,\n",
|
| 357 |
+
" stop=[\"Observation:\"], # Let's stop before any actual function is called\n",
|
| 358 |
+
" extra_body={\"thinking\": {\"type\": \"disabled\"}},,\n",
|
| 359 |
")\n",
|
| 360 |
"\n",
|
| 361 |
"print(output.choices[0].message.content)"
|
|
|
|
| 497 |
" messages=messages,\n",
|
| 498 |
" stream=False,\n",
|
| 499 |
" max_tokens=200,\n",
|
| 500 |
+
" extra_body={\"thinking\": {\"type\": \"disabled\"}},,\n",
|
| 501 |
")\n",
|
| 502 |
"\n",
|
| 503 |
"print(output.choices[0].message.content)"
|