Skip to content

Commit 2a161eb

Browse files
committed
linting (2)
1 parent 2d35dc5 commit 2a161eb

File tree

1 file changed

+9
-3
lines changed
  • supporting-blog-content/context-engineering-mistral-completions

1 file changed

+9
-3
lines changed

supporting-blog-content/context-engineering-mistral-completions/notebook.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@
220220
"print(f\"User: {user_question}\")\n",
221221
"print(\"Assistant: \\n\")\n",
222222
"\n",
223-
"for chunk in stream_chat_completion(ELASTICSEARCH_HOST, INFERENCE_ENDPOINT_NAME, messages):\n",
223+
"for chunk in stream_chat_completion(\n",
224+
" ELASTICSEARCH_HOST, INFERENCE_ENDPOINT_NAME, messages\n",
225+
"):\n",
224226
" print(chunk, end=\"\", flush=True)"
225227
]
226228
},
@@ -397,7 +399,9 @@
397399
" }\n",
398400
"\n",
399401
" try:\n",
400-
" response = requests.post(search_url, json=search_body, headers=ELASTICSEARCH_HEADERS)\n",
402+
" response = requests.post(\n",
403+
" search_url, json=search_body, headers=ELASTICSEARCH_HEADERS\n",
404+
" )\n",
401405
" response.raise_for_status()\n",
402406
"\n",
403407
" results = response.json()\n",
@@ -468,7 +472,9 @@
468472
" ]\n",
469473
"\n",
470474
" full_response = \"\"\n",
471-
" for chunk in stream_chat_completion(ELASTICSEARCH_HOST, INFERENCE_ENDPOINT_NAME, messages):\n",
475+
" for chunk in stream_chat_completion(\n",
476+
" ELASTICSEARCH_HOST, INFERENCE_ENDPOINT_NAME, messages\n",
477+
" ):\n",
472478
" print(chunk, end=\"\", flush=True)\n",
473479
" full_response += chunk\n",
474480
"\n",

0 commit comments

Comments
 (0)