Skip to content

The agent engineering platform.

docs: fix some notebook formatting (#21136)

Erick Friis67e6744e0fcd
diff --git a/docs/docs/integrations/chat/deepinfra.ipynb b/docs/docs/integrations/chat/deepinfra.ipynb
index 121e8eaabf..4c556ffec0 100644
--- a/docs/docs/integrations/chat/deepinfra.ipynb
+++ b/docs/docs/integrations/chat/deepinfra.ipynb
@@ -24,19 +24,11 @@
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": 1,
"metadata": {
"tags": []
},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- " ········\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"# get a new token: https://deepinfra.com/login?from=%2Fdash\n",
"\n",
@@ -47,7 +39,7 @@
},
{
"cell_type": "code",
- "execution_count": 7,
+ "execution_count": 2,
"metadata": {
"tags": []
},
@@ -61,7 +53,7 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 3,
"id": "d4a7c55d-b235-4ca4-a579-c90cc9570da9",
"metadata": {
"tags": []
@@ -74,7 +66,7 @@
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": 4,
"id": "70cf04e8-423a-4ff6-8b09-f11fb711c817",
"metadata": {
"tags": []
@@ -109,7 +101,7 @@
" content=\"Translate this sentence from English to French. I love programming.\"\n",
" )\n",
"]\n",
- "chat(messages)"
+ "chat.invoke(messages)"
]
},
{
@@ -123,7 +115,7 @@
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": 5,
"id": "93a21c5c-6ef9-4688-be60-b2e1f94842fb",
"metadata": {
"tags": []
@@ -188,16 +180,8 @@
" verbose=True,\n",
" callbacks=[StreamingStdOutCallbackHandler()],\n",
")\n",
- "chat(messages)"
+ "chat.invoke(messages)"
]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "c253883f",
- "metadata": {},
- "outputs": [],
- "source": []
}
],
"metadata": {
diff --git a/docs/docs/integrations/document_loaders/yuque.ipynb b/docs/docs/integrations/document_loaders/yuque.ipynb
index 658aae5cf9..63bdca924c 100644
--- a/docs/docs/integrations/document_loaders/yuque.ipynb
+++ b/docs/docs/integrations/document_loaders/yuque.ipynb
@@ -16,7 +16,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 1,
"id": "9ec8a3b3",
"metadata": {
"tags": []
@@ -28,14 +28,15 @@
},
{
"cell_type": "code",
- "outputs": [],
- "source": [
- "loader = YuqueLoader(access_token=\"<your_personal_access_token>\")"
- ],
+ "execution_count": 2,
+ "id": "2ea958f0327ed6e8",
"metadata": {
"collapsed": false
},
- "id": "2ea958f0327ed6e8"
+ "outputs": [],
+ "source": [
+ "loader = YuqueLoader(access_token=\"<your_personal_access_token>\")"
+ ]
},
{
"cell_type": "code",
@@ -69,7 +70,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.6"
+ "version": "3.11.4"
}
},
"nbformat": 4,