Skip to content

Commit 9a35b5a

Browse files
Apply suggestions from code review
Co-authored-by: Justin Castilla <[email protected]>
1 parent cf6c46d commit 9a35b5a

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"source": [
3535
"import requests\n",
3636
"import json\n",
37+
"import getpass\n",
3738
"import os\n",
3839
"from typing import Dict, Any, Generator\n",
3940
"from IPython.display import display, Markdown, clear_output\n",
@@ -61,8 +62,8 @@
6162
"outputs": [],
6263
"source": [
6364
"# Configuration - Update these values with your credentials\n",
64-
"ELASTICSEARCH_HOST = \"https://tralmis-tral-d91b08.es.us-central1.gcp.elastic.cloud:443\"\n",
65-
"ELASTICSEARCH_API_KEY = \"elasticsearchapikey==\"\n",
65+
"ELASTICSEARCH_ENDPOINT = getpass.getpass(\"Enter Elastic Endpoint: \")\n"
66+
"ELASTICSEARCH_API_KEY = getpass.getpass(\"Enter Elasticsearch API key: \")\n",
6667
"MISTRAL_API_KEY = \"mistralapikey==\" # Replace with your Mistral API key\n",
6768
"\n",
6869
"MISTRAL_MODEL = \"mistral-large-latest\" # Mistral model to use\n",

0 commit comments

Comments
 (0)